Send this to a friend
1 Pony.mail(:to => 'email@provider.com', :via => :smtp, :via_options => {
2 :address => 'smtp.gmail.com',
3 :port => '587',
4 :enable_starttls_auto => true,
5 :user_name => 'id_gmail',
6 :password => 'parola_gmail',
7 :authentication => :plain,
8 :domain => "HELO",
9 },
10 :subject => 'hi', :body => 'Hello there.')
Pony.mail(:to => 'email@provider.com', :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 => 'hi', :body => 'Hello there.')