> For the complete documentation index, see [llms.txt](https://docs.jetadmin.io/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.jetadmin.io/jet-bridge-deployment/cloud-jet-bridge-and-on-premises/on-premise/.env-configuration-local-host/email-sending-configuration.md).

# Email Sending Configuration

Configuring email sending settings in the environment (.env) file is essential for enabling email functionality within your application.

### **Locate and Open the .env File:** <a href="#locate-and-open-the-.env-file" id="locate-and-open-the-.env-file"></a>

Navigate to the directory where the .env file is located and open it for editing. You can use any text editor of your choice. For example:

```bash
cd jet-onpremise
nano .env
```

### **Simple Email Configuration** <a href="#simple-email-configuration" id="simple-email-configuration"></a>

Modify the following parameters with your email server data:

```
EMAIL_FROM=email@example.com
EMAIL_BACKEND=django.core.mail.backends.smtp.EmailBackend
EMAIL_HOST=email_host
EMAIL_PORT=email_port
EMAIL_USER=email_username
EMAIL_PASSWORD=email_password
EMAIL_TLS=1
EMAIL_ADMIN=admin_email@example.com
```

{% hint style="warning" %}
Replace`email@example.com`, `email_host`, `email_port`, `email_username`, `email_password`, and `admin_email@example.com` with your actual email server details.
{% endhint %}

### **Advanced Email Configuration (Amazon SES)**

Alternatively, if you're using Amazon SES for email sending, Add the following parameters with your Amazon SES credentials:

```plaintext
AWS_ACCESS_KEY_ID=aws_access_key_id
AWS_SECRET_ACCESS_KEY=aws_secret_access_key
AWS_REGION=aws_region
AWS_SES_HOST=email-smtp.aws_region.amazonaws.com
AWS_SES_PORT=465
AWS_SES_USER_GROUP=ses_user_group
```

{% hint style="warning" %}
Replace `aws_access_key_id`, `aws_secret_access_key`, `aws_region`, and `ses_user_group` with your actual Amazon SES credentials and region.
{% endhint %}


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

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

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

```
GET https://docs.jetadmin.io/jet-bridge-deployment/cloud-jet-bridge-and-on-premises/on-premise/.env-configuration-local-host/email-sending-configuration.md?ask=<question>&goal=<user_goal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

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.
