It looks from http://github.com/benprew/pony that you should use :password 
instead of :pass

- David

On Mar 9, 2010, at 3:47 AM, stalkert wrote:

> Hi, l have exactly the same problem.
> Has anyone find a solution yet?
> 
> regards Joost Saanen
> 
> On Feb 17, 3:47 am, zack <[email protected]> wrote:
>> Hi,
>> 
>> I've been trying to get a simple app to send out an email usingpony
>> in sinatra. So far I've done the following
>> 
>> 1. add the sendgrid:basic addon
>> 2. addedponyto the .gems file in my app root
>> 3. added the following lines of code to my app.rb
>> 
>>     #app.rb
>>     post '/sendEmail' do
>>        Pony.mail(:to => '[email protected]',
>>                          :from => '[email protected]',
>>                          :subject => 'test',
>>                          :via => :smtp,
>>                          :smtp => {
>>                                :port   => '25',
>>                                :user  => ENV['SENDGRID_USERNAME'],
>>                                :pass   => ENV['SENDGRID_PASSWORD'],
>>                                :host   => 'smtp.sendgrid.net',
>>                                :auth   => :plain,
>>                                :domain => ENV['SENDGRID_DOMAIN']
>>                           })
>> 
>> However when /sendMail tries to send out an email, I'm getting a
>> 
>> "ArgumentError - both user and secret are required:".
>> 
>> It seems like the username or password is not being picked up and sent
>> to sendgrid. I've gone into the heroku console and the ENV vars are
>> displaying correctly, so im not sure what else to do. Can't find
>> anything else i should configure from the heroku docs
>> 
>> I've followed theponydocs and the heroku 
>> docshttp://github.com/benprew/ponyhttp://docs.heroku.com/sendgrid
>> 
>> Is there anything else i should be doing? Thanks in advance.
>> 
>> Regards,
>> Zack
> 
> -- 
> 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.
> 

-- 
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.

Reply via email to