Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Ruby Pony alternative for Ruby 1.9?

Tags:

email

ruby

gmail

Pony is broken in ruby 1.9. Does any recommend any alternatives for me so I can send mail through my Gmail account? Cheers

like image 698
sudopal Avatar asked Dec 02 '25 10:12

sudopal


1 Answers

Pony works for me in Ruby 1.9, and I'm also using the gmail SMTP server. Here's how I have it set up...

require 'pony'
Pony.mail(:to => '[email protected]', :via => :smtp, :via_options => {
    :address => 'smtp.gmail.com',
    :port => '587',
    :enable_starttls_auto => true,
    :user_name => 'id_gmail',
    :password => 'parola_gmail',
    :authentication => :plain,
    :domain => "HELO",
},
:subject => 'Test email', :body => 'Test for Pony email through gmail SMTP server.')
like image 184
Schlermie Avatar answered Dec 05 '25 00:12

Schlermie



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!