# Send Mail Task

The *Send Mail* object can be used to send email notifications to a user or administrator at appropriate junctions in a workflow.

![](https://3891069449-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F28dJIkGHacXhBlux3efx%2Fuploads%2FgtADd6DLDpuX4QQ9LEAu%2F0.jpeg?alt=media)

1. First, we will drag and drop the *Send Mail* object onto the workflow from the Toolbox. Right-click on the object’s header and select *Properties* from the context menu.

![](https://3891069449-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F28dJIkGHacXhBlux3efx%2Fuploads%2F89ePXKJgopEVgqOLCYwO%2F1.png?alt=media)

This will open the *Properties* screen.

![](https://3891069449-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F28dJIkGHacXhBlux3efx%2Fuploads%2FQNM4Y9P4EV5X6lC0Zeu9%2F2.png?alt=media)

*Server:* Configure a connection for the email server provider.

2. Click on the ellipses button next to the *Server* textbox. This will open a new window where the properties of the server connection can be configured.

![](https://3891069449-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F28dJIkGHacXhBlux3efx%2Fuploads%2FLs29G3MYhDADZRaftXBp%2F3.png?alt=media)

* *Url:* The address of the mail server on which the connection will be configured.
* *Login Name:* The Hostname
* *Password:* Password of the user.
* *Port:* The port of the mail server on which to configure. Some examples of SMTP provider ports are; 567 for Outlook, 25 for Google, etc.
* *Require SSL:* Check this box for secure communication with the server.
* *Connection Logging:* Connection logging is used to log different types of messages or events between the client and the server. In case of error or debugging purposes, the user can see them.

Astera supports 4 types of *Connection Logging* methods in Astera:

* *Verbose:* Captures everything.
* *Debug:* Captures only the content that can be used in debugging.
* *Info:* Captures information and general messages.
* *Error:* Captures only the errors.

![](https://3891069449-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F28dJIkGHacXhBlux3efx%2Fuploads%2F7EPo3WnuTz87mn3gaXz1%2F4.png?alt=media)

3. Once done, click *OK* and the server properties will be configured.

![](https://3891069449-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F28dJIkGHacXhBlux3efx%2Fuploads%2FHL6S46HkaOYcMeIfZ3cg%2F5.png?alt=media)

The following properties can be configured from the *Send Mail Properties* window:

* *From:* The sender’s email address. It should be the same as the email specified in the connection.

{% hint style="info" %}
**Note:** The object has the capability to send a test mail to verify the connection details specified.
{% endhint %}

* *To:* The recipient’s email address.
* *Subject:* Subject of the email.
* *CC:* This allows you to send a copy of the email to any recipient of your choice
* *BCC:* This allows you to add additional recipients to the mail to be sent.
* *Attachment:* Browse a file attachment to be sent in the mail.

![](https://3891069449-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F28dJIkGHacXhBlux3efx%2Fuploads%2Fck117hS5NJ1HQtDn6I5X%2F6.png?alt=media)

* *Html Content:* Check this box if the email message body is to be defined in an HTML format.
* *Message:* This is where the body of the email is going to be present.

{% hint style="info" %}
**Note:** The angular brackets to the right side of the message body tell you that the use of parameters is supported to parameterize the mail body using flow variables.
{% endhint %}

4. Once done, click *Next* and you will be led to the *Config Parameters* screen.

![](https://3891069449-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F28dJIkGHacXhBlux3efx%2Fuploads%2FPgpIIaUA97s869ormIAp%2F7.png?alt=media)

Parameters can provide deployment of flows by eliminating hardcoded values and provide a dynamic way of changing multiple configurations with a simple value change.

{% hint style="info" %}
**Note**: Parameters left blank will use their default values assigned on the properties page.
{% endhint %}

5. Click *Next* and you will be led to the *General Options* screen.

![](https://3891069449-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F28dJIkGHacXhBlux3efx%2Fuploads%2Fau6jDfibj08aJAf4vFeA%2F8.png?alt=media)

Here, you can add any *Comments*.

6. Click *OK* and the *Send Mail* object will be configured.

![](https://3891069449-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F28dJIkGHacXhBlux3efx%2Fuploads%2FNya2iE31v8SrkUrV6Bif%2F9.png?alt=media)
