Skip to content

Instantly share code, notes, and snippets.

@jelder
Created November 2, 2010 20:28
Show Gist options
  • Save jelder/660241 to your computer and use it in GitHub Desktop.
Save jelder/660241 to your computer and use it in GitHub Desktop.
>> test_email
=> {:body=>"test body", :subject=>"test subject", :authentication=>:plain, :domain=>"heroku.com", :address=>"smtp.sendgrid.net", :from=>"[email protected]", :user_name=>"[email protected]", :port=>25, :to=>"[email protected]", :password=>"XXXXXXXXXXXXXXX"}
>> Pony.mail(test_email)
=> #<Mail::Message:23867391363740, Multipart: false, Headers: <Date: Tue, 02 Nov 2010 13:26:22 -0700>, <From: [email protected]>, <To: [email protected]>, <Message-ID: <[email protected]>>, <Subject: test subject>, <Mime-Version: 1.0>, <Content-Type: text/plain>, <Content-Transfer-Encoding: 7bit>>
>>
@jelder
Copy link
Author

jelder commented Nov 2, 2010

Done via "heroku console"

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment