# Email Configuration

![](/files/-Mj3BudYKI6NPeSy0uB7)

If you use the SMTP mail function make sure All credentials are correct.

Gmail Host:  smtp.gmail.com\
Gmail Port:  465

&#x20;**If you are using Gmail SMTP please make sure you have set the below settings before sending mail**

{% hint style="danger" %}

1. Login to your Gmail
2. Go to Security setting and Enable 2 factor authentication
3. After enabling this you can see app passwords option
4. And then, from Your app passwords tab select Other option and put your app name and click GENERATE button to get new app password.
5. Finally copy the 16 digit of password and click done. Now use this password instead of email password to send mail via your app.
   {% endhint %}

{% hint style="success" %}
Third-party mailer - SendGrid
{% endhint %}

#### 3rd Party SMTP providers like SendGrid

SendGrid is the leading SMTP provider. Easy to set up and reliable service.

Get an account [here](https://sendgrid.com/).

[This article](https://sendgrid.com/docs/API_Reference/SMTP_API/integrating_with_the_smtp_api.html) is important in order to setup your SendGrid SMTP correct.

**Required**: You need to Authenticate your domain to send emails from. [Here](https://sendgrid.com/docs/ui/account-and-settings/how-to-set-up-domain-authentication/) is how.


---

# 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://phplime-envato.gitbook.io/qrexorder/configuration/email-configuration.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.
