you are here: codestackercodes [RSS] → tag pony [RSS]

sending email with pony

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, # :plain, :login, :cram_md5, no auth by default

:domain => "HELO", # don't know exactly what should be here

},
:subject => 'hi', :body => 'Hello there.')
Displaying 1 Code