Open email Version 1 (Java)

Action group: Mail


Description

The action makes a connection to the mail server and returns the connection context.

Action icon

PropertyDescriptionTypeFilling exampleMandatory field
Parameters
Server TypeSelecting the type of mail server. To send mail: eSMTP. To receive mail: eIMAP, ePOP3. Dropdown list: eSMTP, eIMAP, ePOP3.Robin.String
Yes
Using APISelecting the API the server is using.Robin.String
Yes
SSLUse SSL protocolRobin.BooleantrueNo
TLSUse TLS protocolRobin.BooleantrueNo
PortConnection portRobin.Numeric
Yes
Server URLMail server URLRobin.String
Yes
UserUserRobin.String
No
PasswordPasswordRobin.Password
No
Results
ContextMail server connection contextRobin.JavaMail

Special conditions of use

Connection to mail servers - Yandex

Before using these services, it is necessary to connect email programs:yamail_settings.png

To work with external Yandex mail, you will need to create a password. To do this, perform the following actions:yamail_settings_apppass.png

Next, set the name of the external password. After we have created a password, it must be saved to our computer, because we will not have access to it in the future.yamail_addapp.png


Protocol SMTPProtocol POP3Protocol IMAP
SSLfalsetruefalsetruefalsetrue
Port25 OR 587465110995143993
URLsmtp.yandex.rupop.yandex.ruimap.yandex.ru
User<user (the part of the email address up to the @ sign, without the domain)>
Password<password>

Connecting to mail servers - Gmail

To work with mail, you will need to create a password. To do this, perform the following actions:

Go to your Google account profile and click on the "Safety" tab:

Go to the "Two-step authentication" page:

Select the "Application passwords" section:

Next, specify the name of the application and click the "Create" button:

Next, a password will appear, which must be saved to your computer, as you will not be able to access it in the future. Use the received password in the "Password" field.


Protocol SMTPProtocol POP3Protocol IMAP
SSLfalsetruefalsetruefalsetrue
Port587465110995143993
URLsmtp.gmail.compop.gmail.comimap.gmail.com
User<user (full email address, with the domain)>
Password<password>

Connecting to mail servers - Mail

Before using these services, connect your email programs:image2024-1-31_12-7-8.png

Then click the "Add" button and enter a name for the password. After click continue and then the password will appear, which must be saved to your computer, as you will not be able to access it in the future.
image2024-1-31_12-7-32.png


Protocol SMTPProtocol POP3Protocol IMAP
SSLfalsetruefalsetruefalsetrue
Port25 ИЛИ 587465110995143993
URLsmtp.mail.rupop.mail.ruimap.mail.ru
User<user (full email address, with the domain)>
Password<password>

Connecting to mail servers - it.ru


Protocol SMTPProtocol POP3Protocol IMAP
SSLfalsetruefalsetruefalsetrue
Port25




URLgate02.it.ru

User<user (full email address, with the domain)>
Password<password>

Selecting "API Usage"="Exchange" will enable the configuration for "Exchange". The three highlighted parameters are taken into account.image2024-1-31_12-11-51.png

Example of use 

Task

Get all emails from test_robin_mail@mail.ru, with the subject line "Employee".

Solution

  1. Connect the mailbox from which the email will be sent. For any actions with a particular mailbox, you must first connect to it, create its unique identifier (Context).
    1. Define the mail service. (Connection parameters to the mailbox depend on the mail service).

  2. Send email. 

Implementation

Open "Mail" action group ("Mail Java" subgroup).

  1. Assemble a robot scheme with the actions:
  2. Set the "Open email" action parameters. 

  3. Setting action parameters:

    1. "Server type" parameter. From the dropdown list select "eSMTP" to send an email.

    2. "Using API" parameter. Set "No API". 

    3. "SSL" parameter. Check the checkbox.

    4. "Port" parameter. Set 465 according to settings requirement of the Mail.ru mailing server. 

    5. "Server URL" parameter. Set smtp.mail.ru according to settings requirement of the Mail.ru mailing server. 

    6. "User" parameter. Set test_robin_mail@mail.ru as the mail from which to send an email. 

    7. "Password" parameter. Set the mail password. 

  4. Set the parameters for the "Send message" action.


  5. Set the action parameters:

    1. "Context" parameter. It is necessary to select the context corresponding to the mailbox test_robin_mail@mail.ru.


    2. "From" parameter. Specify the mailbox from which we are sending the message.


    3. "To" parameter. Specify the mailbox to which we are sending the message.


    4. "Subject" parameter. Specify the subject of the message. 


    5. "Message body" parameter specifies a text variable with data about the employee.

  6. Click on the "Start" button in the top panel. 

Result

The mailbox testsforrobin@mail.ru is connected. 

A message with personal data has been sent.

  • Нет меток