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.
2d8b8b3782611eae032f194a900db4ef?d=identicon&s=25 Vetrivel Vaithilingam (vetrivel)
on 2009-02-18 10:39
Example program to send email with text file attachment in ruby
D15a45a973443d4562051eb675b60474?d=identicon&s=25 Tom Cloyd (Guest)
on 2009-02-18 10:59
(Received via mailing list)
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)
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
8f6f95c4bd64d5f10dfddfdcd03c19d6?d=identicon&s=25 Rick Denatale (rdenatale)
on 2009-02-18 14:33
(Received via mailing list)
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?
>
>
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
Be07c8d0d6867fd9a0d525f7d17600e2?d=identicon&s=25 Damjan Rems (ther)
on 2009-02-19 11:57
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
This topic is locked and can not be replied to.