Forum: Ruby email in ruby

Announcement (2017-05-07): www.ruby-forum.com is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see rubyonrails.org/community and ruby-lang.org/en/community for other Rails- und Ruby-related community platforms.
Vetrivel V. (Guest)
on 2009-02-18 11:39
Example program to send email with text file attachment in ruby
Tom C. (Guest)
on 2009-02-18 11:59
(Received via mailing list)
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)
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Rick D. (Guest)
on 2009-02-18 15:33
(Received via mailing list)
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. <G>

--
Rick DeNatale

Blog: http://talklikeaduck.denhaven2.com/
Twitter: http://twitter.com/RickDeNatale
Damjan R. (Guest)
on 2009-02-19 12:57
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
This topic is locked and can not be replied to.