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
- "Server type" field - selecting the type of mail server. To send mail: eSMTP. To receive mail: eIMAP, ePOP3. Dropdown list: eSMTP, eIMAP, ePOP3.
- "Using API" field - selecting the API the server is using.
- "SSL" field - use SSL protocol.
- "TLS" field - use TLS protocol.
- "Port" field - connection port.
- "Server URL" - mail server URL.
- "User" field - mail login.
- "Password" field - mail password.
Output parameters
Context - mail server connection context.
Settings
Property | Description | Type | Filling example | Mandatory field |
---|---|---|---|---|
Parameters | ||||
Server Type | Selecting the type of mail server. To send mail: eSMTP. To receive mail: eIMAP, ePOP3. Dropdown list: eSMTP, eIMAP, ePOP3. | Robin.String | Yes | |
Using API | Selecting the API the server is using. | Robin.String | Yes | |
SSL | Use SSL protocol | Robin.Boolean | true | No |
TLS | Use TLS protocol | Robin.Boolean | true | No |
Port | Connection port | Robin.Numeric | Yes | |
Server URL | Mail server URL | Robin.String | Yes | |
User | User | Robin.String | No | |
Password | Password | Robin.Password | No | |
Results | ||||
Context | Mail server connection context | Robin.Email | Email 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 SMTP | Protocol POP3 | Protocol IMAP | ||||
---|---|---|---|---|---|---|
SSL | false | true | false | true | false | true |
Port | 25 OR 587 | 465 | 110 | 995 | 143 | 993 |
URL | smtp.yandex.ru | pop.yandex.ru | imap.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 SMTP | Protocol POP3 | Protocol IMAP | ||||
---|---|---|---|---|---|---|
SSL | false | true | false | true | false | true |
Port | 587 | 465 | 110 | 995 | 143 | 993 |
URL | smtp.gmail.com | pop.gmail.com | imap.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 SMTP | Protocol POP3 | Protocol IMAP | ||||
---|---|---|---|---|---|---|
SSL | false | true | false | true | false | true |
Port | 25 OR 587 | 465 | 110 | 995 | 143 | 993 |
URL | smtp.mail.ru | pop.mail.ru | imap.mail.ru | |||
User | <user (full email address, with the domain)> | |||||
Password | <password> |
Connecting to mail servers - it.ru
Protocol SMTP | Protocol POP3 | Protocol IMAP | ||||
---|---|---|---|---|---|---|
SSL | false | true | false | true | false | true |
Port | 25 | |||||
URL | gate02.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
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).
Define the mail service. (Connection parameters to the mailbox depend on the mail service).
Send email.
Implementation
Open "Mail" action group ("Mail Net" subgroup).
- Assemble a robot scheme with the actions:
- Set the "Open email" action parameters.
Setting action parameters:
"Server type" parameter. From the dropdown list select "eSMTP" to send an email.
"Using API" parameter. Set "No API".
"SSL" parameter. Check the checkbox.
"Port" parameter. Set 465 according to settings requirement of the Mail.ru mailing server.
"Server URL" parameter. Set smtp.mail.ru according to settings requirement of the Mail.ru mailing server.
"User" parameter. Set test_robin_mail@mail.ru as the mail from which to send an email.
"Password" parameter. Set the mail password.
4. Place the “Get message” action in the studio workspace.
Setting action parameters:
"Context" parameter. From a dropdown list select a context corresponding to mail from which the emails will be subtracted.
"From" parameter. Set sender's mail.
"Starting date" parameter. Set the starting date of the interval.
"Ending date" parameter. Set the ending date of the interval.
"Results" parameter. Set the "Table" variable to which the information from the emails will be saved.
"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
Mailbox testsforrobin@mail.ru is connected. The data from emails is stored in the CSV table.