Email in ruby

Example program to send email with text file attachment in ruby

Vetrivel V. wrote:

Example program to send email with text file attachment in ruby

Is there a verb somewhere…anywhere?

No verb == nominal phrase…naming…??? what?

Tom C., MS MA, LMHC - Private practice Psychotherapist
Bellingham, Washington, U.S.A: (360) 920-1226
<< [email protected] >> (email)
<< TomCloyd.com >> (website)
<< sleightmind.wordpress.com >> (mental health weblog)

On Wed, Feb 18, 2009 at 4:58 AM, Tom C. [email protected] wrote:

Vetrivel V. wrote:

Example program to send email with text file attachment in ruby

Is there a verb somewhere…anywhere?

No verb == nominal phrase…naming…??? what?

I took it that he hit the send key before typing in HIS example program
to
send email with a text attachment in ruby.


Rick DeNatale

Blog: http://talklikeaduck.denhaven2.com/
Twitter: http://twitter.com/RickDeNatale

I did it with Ruport:

r = Ruport::Report.new
r.add_mailer :default,
:host => “mymail.server.com”,
:address => “[email protected]

r.send_to(‘[email protected]’) do |mail|
mail.subject = “Some subject”
mail.attach(‘myfile.name’)
mail.text = “Some text”
end

by
TheR