I’ll introduce the configuration for sending emails from Mastodon using Gmail.
.env.production email delivery configuration
The email delivery configuration items are in the SMTP_* section of the .env.production file.
SMTP_SERVER=smtp.gmail.com
SMTP_PORT=587
SMTP_LOGIN=my.gmail.account@gmail.com
SMTP_PASSWORD=mypassword
SMTP_FROM_ADDRESS=my.gmail.account@gmail.com
SMTP_DOMAIN=gmail.com
SMTP_OPENSSL_VERIFY_MODE=none
For those who want to send emails for free without using email delivery services, being able to use Gmail is appreciated.
Reference Information
- Emails are not sent - Actionmailer: "End of file reached" · Issue #934 · tootsuite/mastodon
- Gmail を使って Net::SMTPAuthenticationError が出力される場合の解決法 - 大学生からの Web 開発
That’s all from the Gemba.