Skip to content

Instantly share code, notes, and snippets.

@brandonmwest
Last active February 26, 2016 19:01
Show Gist options
  • Save brandonmwest/7f04c80003b983567678 to your computer and use it in GitHub Desktop.
Save brandonmwest/7f04c80003b983567678 to your computer and use it in GitHub Desktop.
$ ack MANDRILL_APP
models/email.rb
186: user_name: ENV['MANDRILL_USERNAME'],
187: password: ENV['MANDRILL_APIKEY'],
$ heroku addons:create sendgrid
$ heroku addons:destroy mandrill
def self.default_smtp_options
{
from: "Glenn @ ContentFocus <team@contentfocus.io>",
via: :smtp,
via_options: {
address: 'smtp.mandrillapp.com',
port: '587',
enable_starttls_auto: true,
user_name: ENV['MANDRILL_USERNAME'],
password: ENV['MANDRILL_APIKEY'],
domain: 'contentfocus.io',
authentication: 'login'
}
}
def self.default_smtp_options
{
from: "Glenn @ ContentFocus <team@contentfocus.io>",
via: :smtp,
via_options: {
address: 'smtp.sendgrid.net',
port: '587',
enable_starttls_auto: true,
user_name: ENV['SENDGRID_USERNAME'],
password: ENV['SENDGRID_PASSWORD'],
domain: 'contentfocus.io',
authentication: :plain
}
}
$ heroku addons:open sendgrid
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment