I got the same error when I first ran
it. I changed the case of .send to .Send and it worked and continues to
work. You might try retyping that line yourself making sure our
capitalize .Send. I know it shouldn’t matter but sometimes it does.
I also ran it line by line in IRB and could s
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 <[E
This works if you have the CDOEX.DLL on you
machine.
require 'win32ole'
cdoMail = WIN32OLE.new("CDO.Message")
cdoMail.From = "[EMAIL PROTECTED]"
cdoMail.To = "[EMAIL PROTECTED]
"
cdoMail.Subject =
"This is a test"
cdoMail.TextBody =
"This is a test"
cdoMail.Send
cdoMail = n
I use net/smtp.
http://www.ruby-doc.org/stdlib/libdoc/net/smtp/rdoc/
Zeljko
From:
[EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
On Behalf Of Tuyet Cong-Ton-NuSent: Wednesday, July 27, 2005
3:14 AMTo: wtr-general@rubyforge.orgSubject: [Wtr-general]
Sending Email Notifications
After a