0

hi

i had create classic asp one application in which send emails using smtp server using my domain name but it display error("transport of connect to the server failed")

how to send emails..

2
Contributors
5
Replies
7
Views
6 Years
Discussion Span
Last Post by ArtistScope
0

CDOSYS or CDONTS?

For CDOSYS try:

Set ObjSendMail = CreateObject("CDO.Message")
ObjSendMail.Configuration.Fields.Item ("http://schemas.microsoft.com/cdo/configuration/sendusing") = 2 'Send using SMTP
ObjSendMail.Configuration.Fields.Item ("http://schemas.microsoft.com/cdo/configuration/smtpserver") = strMailServer
ObjSendMail.Configuration.Fields.Item ("http://schemas.microsoft.com/cdo/configuration/smtpserverport") = 25
ObjSendMail.Configuration.Fields.Item ("http://schemas.microsoft.com/cdo/configuration/smtpusessl") = strHtmlFormat
ObjSendMail.Configuration.Fields.Item ("http://schemas.microsoft.com/cdo/configuration/smtpconnectiontimeout") = 60
ObjSendMail.Configuration.Fields.Update
ObjSendMail.To = strToEmail
ObjSendMail.Subject = strSubject
ObjSendMail.From = strFromEmail
ObjSendMail.TextBody = strMessage
ObjSendMail.Send
Set ObjSendMail = Nothing

Edited by ArtistScope: n/a

0

Unless you are wanting to send spam through Gmail, why don't you simply use the mail server provided by IIS?

This topic has been dead for over six months. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.