Hi,
dim receiptto
receiptto="
[email protected]"
set cdoconfig=CreateObject("CDO.configuration")
set cdomsg=CreateObject("CDO.Message")
with cdoconfig.Fields
.Item("http://schemas.microsoft.com/cdo/configuration/sendusing")=2
.Item("http://schemas.microsoft.com/cdo/configuration/smtpserver")="mail8.webmail.com"
'this is the SMTP server setting in my outlook.
.Update
end with
with cdomsg
set .Configuration=cdoconfig
.Fields("urn:schemas:mailheader:disposition-notification-to")=receiptto
.Fields("urn:schemas:mailheader:return-receipt-to") =receiptto
.From="
[email protected]"
.To="
[email protected]"
.Subject="Sample mail"
.HTMLBody="<b>Hello</b>"
.DSNOptions=4
.Fields.update
.Send
end with
set cdoconfig=nothing
set cdomsg=nothing
Response.Write "Mail sent"
I am getting the error ar .Send (Internal Server error 500
If i didnt use configuration, sending mail correctly. (Simple from, to, subject, htmlbody, send).
Thanx in advance