Configuring Action Mailer in Rails for Gmail SMTP Delivery in Development

The article explains how to set up Action Mailer, Rails' built-in email system, to send messages from a development environment. It recommends using a Gmail app password instead of the account password so that two-step verification stays enabled. The Gmail SMTP settings, including server address, port 587, and STARTTLS, are added to the Rails configuration with no extra gems required. The guide then shows how to generate a mailer named UserMailer, which creates the mailer class and its welcome message templates.
This is an AI-generated summary. ShortSingh links to the original source for the complete article.


Discussion (0)
Log in to join the discussion and vote.
Log in