I'm using the Scripting Edition of iMacros web testing tool, I just hope that you know it guys. And I'm trying to use the Google SMTP (smtp.gmail.com) port 465 to send an email via vbscript each time iMacros encountered error during playback. However, each time I run the script, it's giving me this error
the sendusing configuration value is invalid
I've already tried some known fixes but it's still an issue. Here's the script:
Set myMail=CreateObject("CDO.Message")
myMail.Subject="Sending email with CDO"
myMail.From="[email protected]"
myMail.To="[email protected]"
myMail.TextBody="This is a message."
myMail.Configuration.Fields.Item _
("http://schemas.microsoft.com/cdo/configuration/sendusing")=2
'Name or IP of remote SMTP server
myMail.Configuration.Fields.Item _
("http://schemas.microsoft.com/cdo/configuration/smtpserver")="smtp.gmail.com"
'Server port
myMail.Configuration.Fields.Item _
("http://schemas.microsoft.com/cdo/configuration/smtpserverport")=465
myMail.Configuration.Fields.Update
myMail.Send
set myMail=nothing
I'm using the Windows7 Home Premium. and latest version of iMacros. I hope anyone could lend a hand. Thank you so much.