Send message Version 9 (Net)

Action group: Mail


Description

Creates a message and sends it to the specified address

Action icon

Settings of parameters

PropertyDescriptionTypeFilling exampleMandatory field
Parameters
ContextEmail connection context identifierRobin.EmailEmail contextYes
FromSender mail addressRobin.String
Yes
ToList of addresses of the recipients of the letter. Use «;» as a separatorRobin.String
Yes
CCList of addresses of recipients of a copy of the letter. Use «;» as a separatorRobin.String
No
SubjectSubjectRobin.String
No
Message bodyMessage bodyRobin.String
No
AttachmentsThe 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

  1. Assemble a robot scheme consisting of actions:


  2. Configure the settings for the "Open email" action. (see description of the action Open email (Net)). 
  3. 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:



  4. "Send message" action parameters:


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

Result

The robot worked successfully:

A message with personal data has been sent.

  • Нет меток