Configuring email sending settings in the environment (.env) file is essential for enabling email functionality within your application.
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:
cd jet-onpremise
nano .envModify the following parameters with your email server data:
Replace[email protected], email_host, email_port, email_username, email_password, and [email protected] with your actual email server details.
Alternatively, if you're using Amazon SES for email sending, Add the following parameters with your Amazon SES credentials:
Replace aws_access_key_id, aws_secret_access_key, aws_region, and ses_user_group with your actual Amazon SES credentials and region.
[email protected]
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 protected]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