SENDGRID_USERNAME and SENDGRID_PASSWORD are setup automatically by Heroku (http://docs.heroku.com/sendgrid). They will not be available when running locally, so I would do something like this:
# ... :user_name => ENV['SENDGRID_USERNAME'] || 'local username', :password => ENV['SENDGRID_PASSWORD'] || 'local password', # ... On Aug 23, 6:58 am, DAZ <[email protected]> wrote: > Thanks Michal, This is brilliant, just a couple of questions: > > 1. Where do I get SENDGRID_USERNAME and SENDGRID_PASSWORD from, or are > they set up automatically when I install the Sendgrid addon? -- You received this message because you are subscribed to the Google Groups "Heroku" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/heroku?hl=en.
