Email in ruby

Example program to send email with text file attachment in ruby

···

--
Posted via http://www.ruby-forum.com/.

Vetrivel Vetrivel 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 Cloyd, MS MA, LMHC - Private practice Psychotherapist
Bellingham, Washington, U.S.A: (360) 920-1226
<< tc@tomcloyd.com >> (email)
<< TomCloyd.com >> (website) << sleightmind.wordpress.com >> (mental health weblog)
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

I did it with Ruport:

  r = Ruport::Report.new
  r.add_mailer :default,
               :host => "mymail.server.com",
               :address => "address@server.com"

  r.send_to('sendto@somemail.com') do |mail|
    mail.subject = "Some subject"
    mail.attach('myfile.name')
    mail.text = "Some text"
  end

by
TheR

···

--
Posted via http://www.ruby-forum.com/.

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

···

On Wed, Feb 18, 2009 at 4:58 AM, Tom Cloyd <tomcloyd@comcast.net> wrote:

Vetrivel Vetrivel wrote:

Example program to send email with text file attachment in ruby

Is there a verb somewhere...anywhere?

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

--
Rick DeNatale

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