# Sending emails

## <span class="mw-headline" id="bkmrk-preparations-1">Preparations</span>

Get the information of the outbound server

- Server address
- Mail account

Note that the SMTP server may be the same as the IMAP or POP server

## <span class="mw-headline" id="bkmrk-setup-in-tempus-serv-1">Setup in Tempus Serva backend</span>

Go to: **Designer &gt; Modules &gt; Configuration**

In the 'Text' search field, search for Server settings containing **smtp**

[Policy\_reference#Mail\_server](https://docs.tsnocode.com/books/policy-reference "Policy reference")

<table id="bkmrk-alias-empty-meaning-"><tbody><tr><th>Alias</th><th>Empty</th><th>Meaning</th><th>Example</th></tr><tr><td>**smtpServer**</td><td>No</td><td>URL for the outgoing SMTP server</td><td>send.one.com</td></tr><tr><td>**smtpSystemEmail**</td><td>No</td><td>Sender address on email sent from the server</td><td>noreply@acme.com</td></tr><tr><td>**smtpUsername**</td><td>Yes</td><td>Account name for sending emails</td><td>noreply@acme.com</td></tr><tr><td>**smtpPassword**</td><td>Yes</td><td>Password for the above account</td><td>secret1234</td></tr></tbody></table>

Communication with the SMTP server can be tweaked using

<table id="bkmrk-alias-meaning-exampl"><tbody><tr><th>Alias</th><th>Meaning</th><th>Example</th></tr><tr><td>**smtpUseTLS**</td><td>Use TLS communication</td><td>true</td></tr><tr><td>**smtpMailDelay**</td><td>Throtling between each mail (seconds)</td><td>500</td></tr><tr><td>**smtpSendRetries**</td><td>Number of attemts to send each mail</td><td>3</td></tr></tbody></table>

  
In order to test applications a testmode can be activated

<table id="bkmrk-alias-meaning-exampl-1"><tbody><tr><th>Alias</th><th>Meaning</th><th>Example</th></tr><tr><td>**smtpTestMode**</td><td>Activates the test mode</td><td>true</td></tr><tr><td>**smtpTestEmail**</td><td>Email that receives all emails when in testmode</td><td>someone@acme.com</td></tr></tbody></table>