# SMTP

When an email is sent, it's transferred over the internet from one server to another using SMTP. In order for emails to be sent from your company email address, the SMTP server information must be added in Mod24 settings and connected with a company.

Settings for SMTP server can be found under Mailing section. You can add multiple SMTP servers if you have more then one company that uses Mod24.

The general fields for creating an SMTP server in Mod24 are:

* Company - to select to which company it belongs to
* Host
* Port
* Username
* Password
* Encryption

All of these details can be acquired from your administrator, if you're using Gmail to send emails for your company, it is explained in the next section.

{% hint style="info" %}
**Settings explained below are related to Gmail SMTP settings for your account.**

On your google account, allow access to less secure apps here <https://myaccount.google.com/lesssecureapps>

* Enable 2 step verification on your google account
* Go to mod24 SMTP servers and create a new one
* Select a company you wish to send emails from your gmail account
* Use [smtp.gmail.com](http://smtp.gmail.com/) as a host, port 465, encryption as SSL or port 587/STARTTLS
* Username will be the email address you are using for this company. If you are using an alias for the company please enter that instead of your primary account email
* Password that provides access should be generated on your google account:
  * On your google account go to Security > Signing in to Google > App passwords
  * Add a new app password by choosing “Other” and generating it
  * Copy the generated password so you can grant access on mod24
* Create
  {% endhint %}


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.mod24.com/mod24/mailing/smtp.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
