This is something that should work. If it does not work, let me know.

require 'net/smtp'
Net::SMTP.start( 'your.smtp.server', 25, 'mail.from.domain', 'Your Account',
'Your Password', :plain) do |smtp|
        smtp.send_message       "From: Your Name <[EMAIL PROTECTED]>\nTo:
Destination Address <[EMAIL PROTECTED]>\nSubject: test message\n\nbody of
message",
                                '[EMAIL PROTECTED]',
                                '[EMAIL PROTECTED]'
end

Zeljko
________________________________

From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Tuyet Cong-Ton-Nu
Sent: Thursday, July 28, 2005 4:18 AM
To: [email protected]
Subject: [Wtr-general] Sending Email Notifications



Thanks for the good link, Zeljko.

I also tried using the example from the link but didn't get anything
through.

Probably didn't enter the right SMTP.

Would you mind posting an example that worked for you?

Thanks!


_______________________________________________
Wtr-general mailing list
[email protected]
http://rubyforge.org/mailman/listinfo/wtr-general

Reply via email to