R
Rajani
Hello,
dim receiptto
receiptto="(e-mail address removed)"
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="(e-mail address removed)"
.To="(e-mail address removed)"
.Subject="Sample mail"
.HTMLBody="<b><font color=#ff0000 size=3
face='arial'>Hello</font></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
dim receiptto
receiptto="(e-mail address removed)"
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="(e-mail address removed)"
.To="(e-mail address removed)"
.Subject="Sample mail"
.HTMLBody="<b><font color=#ff0000 size=3
face='arial'>Hello</font></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