They're stored as environment variables (SENDGRID_USERNAME & SENDGRID_PASSWORD) so you can find them with 'heroku console'
Although that command gives me an error on the test app I just created (undefined method `size' for nil:NilClass) so I guess the Sendgrid addon either didn't create an account or didn't return the login details to the app's environment. On Jan 25, 4:06 pm, "Matthew A. Brown" <[email protected]> wrote: > Hey Simon, > > Thanks - that's very helpful. How did you get the username and > password for your sendgrid account? > > I also signed up for a Sendgrid account manually for use in > development, and that's working fine at this point - maybe I should > just point my production instance's SMTP settings at that, and disable > the sendgrid add-on... > > Mat > > On Mon, Jan 25, 2010 at 11:01, Simon Starr <[email protected]> wrote: > > I ran into exactly the same problem just now while diagnosing a > > different problem with the Sendgrid addon. I created a fresh Rails > > app, generated a mailer, pushed to Heroku and tried sending a message > > from the console. Not sure what's going on but it seems like > > something's broken somewhere. > > > In response to your other query, earlier in my diagnosis I got the > > username and password for my randomly generated sendgrid account and > > managed to use them to login to a sendgrid.com control panel. Based on > > that, I'd guess you would probably be able to use them for sending > > mail from development without any trouble :) > > > Cheers > > Simon > > > On Jan 24, 6:30 pm, outoftime <[email protected]> wrote: > >> Hi all, > > >> This is my first time using either Heroku or Sendgrid, and I have a > >> couple of questions: > > >> 1) As the subject line indicates, I'm getting a > >> Net::SMTPAuthenticationError when trying to send mail from the console > >> using an ActionMailer instance. I've enabled the sendgrid basic plugin > >> on my Heroku account; I got the impression that the configuration > >> would be automatically added to my app's production deployment at > >> runtime, so there's nothing special in my production config file. > >> Here's what ActionMailer::Base.smtp_settings returns when run from the > >> console: > > >> {:domain=>"heroku.com", :user_name=>"", :password=>"", > >> :address=>"smtp.sendgrid.net", :port=>"25", :authentication=>:plain} > > >> 2) Is it possible to use the Sendgrid account that Heroku > >> automatically sets up for me in development as well? At this point the > >> volume of emails I need to send is very small; just a few for testing > >> purposes. > > >> Thanks! > >> Mat > > > -- > > 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 > > athttp://groups.google.com/group/heroku?hl=en. > > -- 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.
