Open email Version 5 (Net)

Action group: Mail


Description

The action connects to the mail server and returns the connection context.

Action icon

Action parameters 

Input parameters 

  1. "Server type" field - selecting the type of mail server. To send mail: eSMTP. To receive mail: eIMAP, ePOP3. Dropdown list: eSMTP, eIMAP, ePOP3.
  2. "Using API" field - selecting the API the server is using.
  3. "SSL" field - use SSL protocol. 
  4. "TLS" field - use TLS protocol.
  5. "Port" field - connection port.
  6. "Server URL" - mail server URL.
  7. "User" field - mail login. 
  8. "Password" field - mail password.

Output parameters 

Context - mail server connection context.

Settings

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.EmailEmail context

Special conditions of use 

Connection to mail servers - Yandex

Before using these services connect the mail programs, to do this go to the mail settings:

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

Next, set the name of the external password. After you have created a password, it must be saved to the computer, because in the future it will not be accessible to you.


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:

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.


Protocol SMTPProtocol POP3Protocol IMAP
SSLfalsetruefalsetruefalsetrue
Port25 OR 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>

When selecting an Exchange Api, only these three parameters are taken into account:

Example of use 

Task

Get all mails from testsforrobin@mail.ru for a certain time interval and save received emails as a CSV table.

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 Net" 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. Place the “Get message” action in the studio workspace.



    Setting action parameters:

    1. "Context" parameter. From a dropdown list select a context corresponding to mail from which the emails will be subtracted. 

    2. "From" parameter. Set sender's mail. 

    3. "Starting date" parameter. Set the starting date of the interval. 

    4. "Ending date" parameter. Set the ending date of the interval. 

    5. "Results" parameter. Set the "Table" variable to which the information from the emails will be saved. 

    6. "Number of messages" parameter. Set the "Counter" variable to which the information about the number of emails will be saved. 


    5. Click "Start" in the top panel. 

Result

image2024-1-30_17-21-23.png

Mailbox testsforrobin@mail.ru is connected. The data from emails is stored in the CSV table.

image2024-1-30_17-27-18.png

  • Нет меток