SendGrid on Heroku fails
问题 I setup send grid starter for my heroku app. I put this in my config/environment.rb: ActionMailer::Base.smtp_settings = { :user_name => ENV["SENDGRID_USERNAME"], :password => ENV["SENDGRID_PASSWORD"], :domain => "my-sites-domain.com", :address => "smtp.sendgrid.net", :port => 587, :authentication => :plain, :enable_starttls_auto => true } I create this class models/notifier.rb: class Notifier < ActionMailer::Base def notify() mail( :to => "my-email@gmail.com", :subject => "New Website Contact