# Email Sending Configuration

### **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: 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.jetadmin.io/jet-bridge-deployment/on-premise/.env-configuration-local-host/email-sending-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.
