Skip to content

Instantly share code, notes, and snippets.

@jogam5
Last active August 29, 2015 14:04
Show Gist options
  • Save jogam5/053e0765f42cad282cbb to your computer and use it in GitHub Desktop.
Save jogam5/053e0765f42cad282cbb to your computer and use it in GitHub Desktop.
<!DOCTYPE html>
<html>
<head>
<meta content='text/html; charset=UTF-8' http-equiv='Content-Type' />
</head>
<body>
<h1>Hi!</h1>
<p>
There's a new email from: <%= @name %> with email: <%= @email %>.<br>
</p>
<p><%= @message %></p>
</body>
</html>
config.action_mailer.default_url_options = { :host => 'localhost:3000' }
config.action_mailer.delivery_method = :smtp
config.assets.debug = true
config.action_mailer.smtp_settings = {
address: "smtp.gmail.com",
port: 587,
domain: "example.com",
authentication: "plain",
enable_starttls_auto: true,
user_name: "jogam15",
password: "menshealth23"
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment