|
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 see where it was really bombing—that
is where changing the case of .Send worked first. Hope this helps, --Mark From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On
Behalf Of Tuyet Cong-Ton-Nu Thanks, Mark. I did find CDOEX.DLL on my
machine, so I copied your code and ran it, but got this error: C:\watir\watir>email2.rb C:/watir/watir/email2.rb:20:in `method_missing': Send
(WIN32OLERuntimeError) OLE error code:80040220 in CDO.Message.1 The "SendUsing"
configuration value is invalid. HRESULT error code:0x80020009 Exception
occurred. from C:/watir/watir/email2.rb:20 Here is my code: require 'watir' include Watir 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 = nil |
_______________________________________________ Wtr-general mailing list [email protected] http://rubyforge.org/mailman/listinfo/wtr-general
