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..

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

How to send emails in classic asp using gmail as outgoing smtp server
plz help

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

hi,

send me the name of mail server provided by IIS

Help me

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.