# How to Configure WordPress to Use SMTP For Sending Emails?

To begin, install a plugin named [WP Mail SMTP](https://wordpress.org/plugins/wp-mail-smtp/) by following the instructions in our tutorial on how to install WordPress plugins. Once the plugin is installed and activated, a new menu will show up under the **Settings** section called **Email**. You will need to navigate to it to configure WordPress to work with SMTP.

![](https://532169580-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-Mboj_b4Ha8PjhcwkI9w%2Fuploads%2FIZL4i0Zi2UKLBx3BmFSY%2Fimage.png?alt=media\&token=539b1bbb-e889-4a99-810b-1761623c9a4f)

On this page you will see several configuration options available:

![](https://532169580-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-Mboj_b4Ha8PjhcwkI9w%2Fuploads%2FlvRVf4tjcwcgxxmaAIXb%2Fimage.png?alt=media\&token=ae4051b4-d0b1-4a05-a614-e2c4eedbb355)

Then, Go to WP Mail SMTP Setting -> Select Option Mailer And then follow that method's instructions:

<figure><img src="https://532169580-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-Mboj_b4Ha8PjhcwkI9w%2Fuploads%2F3NUwR9uTHoc8TT2wSP5j%2Fimage.png?alt=media&#x26;token=dd13405d-e283-46b2-a932-cc81049f6ff8" alt=""><figcaption></figcaption></figure>

Here’s a list of all of them and what do they configure:

* **From Email** – the email address you want to send emails from – for example, <email@yourdomain.com>;
* **From Name** – the name that your emails will be sent from;
* **Mailer** – choose whether you want to use the *Default* PHP mail() functio&#x6E;*, a Gmail/G Suite account, Mailgun, SendGrid* or other SMTP servers. Choosing the *Default* mode would send the messages using the PHP mail() function without SMTP authentication. The *Gmail/G Suite, Mailgun* and *SendGrid* options require additional info such as Client ID and Client Secret or API key that should be obtained by the respective provider. The *other SMTP server* option would prompt you to enter additional configuration details which we would describe below.
* **Return Path** – check if you want to match the return path for your emails to the sending email;

If you choose other SMTP servers as a mailer, you would be prompted to add the SMTP server’s configuration settings.

* **SMTP Host** – the hostname for your SMTP server;
* **SMTP Port** – the port your server works on;
* **Encryption** – if you have SSL/TLS encryption available for that hostname, select it here;
* **Auto TLS** – if your server supports TLS encryption, enable this option;
* **Authentication** – check if your SMTP server requires authentication;
* **Username** – the username for your SMTP server;
* **Password** – the password for your SMTP server;

Once you configure those parameters, click **Save Settings** at the bottom of the page.


---

# 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://uxper.gitbook.io/nuss/faqs/how-to-configure-wordpress-to-use-smtp-for-sending-emails.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.
