> For the complete documentation index, see [llms.txt](https://docs.visualyze.ai/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.visualyze.ai/rpa-studio/application/mail/send-smtp-mail.md).

# Send SMTP Mail

This activity sends an email message by using SMTP protocol.

### Sender Information

* **From:** [`String Argument`](/getting-started/rpa-studio/arguments.md#string)\
  The email address of the sender.\\
* **Name:** [`String Argument`](/getting-started/rpa-studio/arguments.md#string) `Optional`\
  The sender's display name.

### Receiver Information

* **To:** [`String Argument`](/getting-started/rpa-studio/arguments.md#string) ![](/files/-MVREnwPf_D3-qJvjjYd)\
  The main recipients .of the mail.\\
* **CC:** [`String Argument`](/getting-started/rpa-studio/arguments.md#string)\
  The secondary recipients of the email message.\\
* **BCC:** [`String Argument`](/getting-started/rpa-studio/arguments.md#string)\
  The hidden recipients of the email message.

### Input

* **Subject:** [`String Argument`](/getting-started/rpa-studio/arguments.md#string)\
  The subject of the email message.\\
* **Body:** [`String Argument`](/getting-started/rpa-studio/arguments.md#string)\
  The body of the email message.\\

### Email Configuration

* **Email Id:** [`String Argument`](/getting-started/rpa-studio/arguments.md#string) ![](/files/-MVREnwPf_D3-qJvjjYd)\
  The email account used to send the message.\\
* **Password:** [`String Argument`](/getting-started/rpa-studio/arguments.md#string) ![](/files/-MVREnwPf_D3-qJvjjYd)\
  The password of the email account used to send the message.\\

### Server Configuration

* **Server:** [`String Argument`](/getting-started/rpa-studio/arguments.md#string) ![](/files/-MVREnwPf_D3-qJvjjYd)\
  The email server host that is to be used.\\
* **Port:** [`Integer Argument`](/getting-started/rpa-studio/arguments.md#integer)\
  The port used to send the email message.\\
* **Secure Connection:**\
  Specifies the SSL and/or TLS encryption to be used for the connection.The following are the available options.
  * `Auto` - Allows the IMailService to decide which SSL or TLS options are to be used . `Default`
  * `None` - No SSL/TLS encryption is used.
  * `SslOnConnect` - Uses SSL/TLS encryption immediately.
  * `StartTls` - Uses the TLS encryption immediately after reading the greeting and capabilities of the server. If the server does not support the StartTLS extension, the connection fails.
  * `StartTlsWhenAvailable` - Allows the usage of TLS encryption immediately after reading the greeting and capabilities of the server only if the server supports StartTLS.

### Input

* **Attachments:** [`String Argument`](/getting-started/rpa-studio/arguments.md#string) `Optional`\
  The attachments that are to added to the email message.\\

### Options

* **Priority:**
  * `NonUrgent` - The message has Non-urgent priority. `Default`
  * `Urgent` - The message has urgent priority.
  * `Normal` - The message has normal priority.\\
* **IsBodyHTML:**
  * `True` - The message body is written in HTML format.
  * `False` - The message body is written in text format. `Default`\\

### Forward

* **Mail Message:** [`MimeMessage Argument`](/getting-started/rpa-studio/arguments.md#mimemessage)`Optional`\
  The message to be forwarded, this field only supports Mail Message objects.
