[lnkForumImage]
TotalShareware - Download Free Software

Confronta i prezzi di migliaia di prodotti.
Asp Forum
 Home | Login | Register | Search 


 

Forums >

comp.lang.ruby

email in ruby

Vetrivel Vetrivel

2/18/2009 9:39:00 AM

Example program to send email with text file attachment in ruby
--
Posted via http://www.ruby-....

3 Answers

Tom Cloyd

2/18/2009 9:58:00 AM

0

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)
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~


Rick DeNatale

2/18/2009 1:31:00 PM

0

[Note: parts of this message were removed to make it a legal post.]

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.denh...
Twitter: http://twitter.com/Ri...

Damjan Rems

2/19/2009 10:57:00 AM

0


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-....