Email in ruby


#1

Example program to send email with text file attachment in ruby


#2

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
<< removed_email_address@domain.invalid >> (email)
<< TomCloyd.com >> (website)
<< sleightmind.wordpress.com >> (mental health weblog)

#3

On Wed, Feb 18, 2009 at 4:58 AM, Tom C. removed_email_address@domain.invalid 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


#4

I did it with Ruport:

r = Ruport::Report.new
r.add_mailer :default,
:host => “mymail.server.com”,
:address => “removed_email_address@domain.invalid”

r.send_to(‘removed_email_address@domain.invalid’) do |mail|
mail.subject = “Some subject”
mail.attach(‘myfile.name’)
mail.text = “Some text”
end

by
TheR