Skip to content

Instantly share code, notes, and snippets.

@abhianair
Created October 29, 2018 12:36
Show Gist options
  • Save abhianair/8d2eb01fc6438a69f4946556b095cb6b to your computer and use it in GitHub Desktop.
Save abhianair/8d2eb01fc6438a69f4946556b095cb6b to your computer and use it in GitHub Desktop.
config code for email verification in config>>environment>>development.rb
config.action_mailer.perform_deliveries = true
config.action_mailer.raise_delivery_errors = true
config.action_mailer.default_url_options = { host: "localhost:3000" }
config.action_mailer.delivery_method = :smtp
config.action_mailer.smtp_settings = {
user_name: "username@gmail.com",
password: "password",
domain: "localhost:3000",
address: "smtp.gmail.com",
port: 587,
authentication: :plain,
enable_starttls_auto: true
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment