sapzz
2/2/2006 6:21:00 AM
Hi guys,
I want to automatically generate emails on specific events.
I am using the following script in ruby. It gives runtime error that
parameter missing
how do I go about it????????
require 'win32ole'
myMail= WIN32OLE::new("CDO.Message")
myConfig= WIN32OLE::new("CDO.Configuration")
#myMail=CreateObject("CDO.Message")
myMail.Subject="Sending email with CDO"
myMail.From="my email id"
myMail.To="receipients email"
myMail.TextBody="This is a sample scripting message."
myConfig.Fields.Item.SmtpMail.SmtpServer = "mail.persistent.co.in "
myConfig.Fields.Item.smtpport= 25
#myConfig.Update
#myMail.Send
#myMail=nothing
thanks
Sapna