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
Settings of parameters
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.JavaMail |
Special conditions of use
Connection to mail servers - Yandex
Before using these services, it is necessary to connect email programs:
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 we have created a password, it must be saved to our computer, because we will not have access to 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.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 ИЛИ 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> |
Selecting "API Usage"="Exchange" will enable the configuration for "Exchange". The three highlighted parameters are taken into account.
Example of use
Task
Get all emails from test_robin_mail@mail.ru, with the subject line "Employee".
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 Java" 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.
Set the parameters for the "Send message" action.
Set the action parameters:
"Context" parameter. It is necessary to select the context corresponding to the mailbox test_robin_mail@mail.ru.
"From" parameter. Specify the mailbox from which we are sending the message.
"To" parameter. Specify the mailbox to which we are sending the message.
"Subject" parameter. Specify the subject of the message.
"Message body" parameter specifies a text variable with data about the employee.
- 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.