Send message Version 9 (Net)
Action group: Mail
Description
Creates a message and sends it to the specified address
Action icon
Settings of parameters
Property | Description | Type | Filling example | Mandatory field |
Parameters | ||||
Context | Email connection context identifier | Robin.Email | Email context | Yes |
From | Sender mail address | Robin.String | Yes | |
To | List of addresses of the recipients of the letter. Use «;» as a separator | Robin.String | Yes | |
CC | List of addresses of recipients of a copy of the letter. Use «;» as a separator | Robin.String | No | |
Subject | Subject | Robin.String | No | |
Message body | Message body | Robin.String | No | |
Attachments | The path to the file to be attached. If you need to attach several attachments, paths to files are indicated with «;» | Robin.FilePath | No |
Special conditions of use
None.
Example of use
Task
Send a message with the subject line "Test message" with the body of the email "Hello world". To testsforrobin@mail.ru.
Attach an attachment in the form of a .docx file to the email.
Solution
Connect the mailbox from which the email will be sent. For any actions with a particular mailbox, you should first connect to it, create its unique identifier (Context).
Define a mail service. (The parameters of connection to the mailbox depend on the mail service).
Send a message.
Implementation
- Assemble a robot scheme consisting of actions:
- Configure the settings for the "Open email" action. (see description of the action Open email (Net)).
Set the parameters for the "Send message" action.
Setting the parameters for the action:
"Context" parameter. It is necessary to select from the dropdown list the context corresponding to the mailbox from which the message will be sent.
"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 email.
The "Message body" parameter. Specify a variable with personal data of the employee. (Full name, Phone number).
The "Attachments" parameter. Specify the path to the file.
Parameters of the "Open email" action:
- "Send message" action parameters:
- Click on the "Start" button in the top panel.
Result
The robot worked successfully:
A message with personal data has been sent.