Configure SMTP for outbound emails

Configure the SMTP settings of a Trac project in its trac.ini file. In the [notification] section, modify the fields and enter values specific to the SMTP server you wish to use. Here’s an example using Gmail:

smtp_enabled = true
use_tls = true
mime_encoding = base64
smtp_server =
smtp_port = 587
smtp_user = your_account
smtp_password = your_password

To configure the application to use other third-party SMTP services for outgoing email, such as SendGrid, refer to the FAQ.

NOTE: If you are using Gmail as the outbound email server and have experienced issues trying to send emails correctly, check the Gmail SMTP troubleshooting page to learn the causes of these issues and how to solve them.

Last modification January 18, 2019