guineamation
Programmer
i'm trying to send email using the CDO object to emails from a DB,
i managed to send a few but the it stopped, now after a few changes i have this code that gives me the error:
CDO.Message.1 error '80040220'
The "SendUsing" configuration value is invalid.
/sendmail/sendmail.asp, line 59
line 59 is the send line.
any ideas?, i've searched the net, lost of almost and no luck.
i managed to send a few but the it stopped, now after a few changes i have this code that gives me the error:
CDO.Message.1 error '80040220'
The "SendUsing" configuration value is invalid.
/sendmail/sendmail.asp, line 59
line 59 is the send line.
Code:
Set objCDO = Server.CreateObject("CDO.Message")
Const cdoSchema = "[URL unfurl="true"]http://schemas.microsoft.com/cdo/configuration/"[/URL]
' Setup server information
objCDO.configuration.Fields.Item(cdoSchema & "smtpserverport") = 25
objCDO.configuration.Fields.Item(cdoSchema & "sendusing") = cdoSendUsingPort
objCDO.configuration.Fields.Item(cdoSchema & "smtpserver") = "mail-fwd.dulles19-verio.com"
Server.ScriptTimeout = 180
Session.Timeout = 2.5
with objCDO
.From = "webmaster@domain.com"
.To = rsSendMail("email")
.Subject = "News "&CStr(now())
.CreateMHtmlBody "[URL unfurl="true"]http://www.domain.com/news.html"[/URL]
.Send '!!!!!!!!!!!!!! Line 59 //////////////////
End With
any ideas?, i've searched the net, lost of almost and no luck.