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..
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..
Quick summary and a practical path forward based on the thread: there are three common ways to get a Classic ASP app to send mail — use the SMTP server your hosting/mail provider gives you, run a local SMTP relay on the web server and point ASP at that, or relay through an external service (Gmail, SendGrid, Mailgun). ’s connection failure is usually a network or authentication problem (wrong host/port, TLS/auth mismatch, or blocked outbound port). ’s suggestion to try the local server is a good way to isolate network issues.
If you want to use Gmail as the outgoing SMTP: connect to smtp.gmail.com and use an authenticated, encrypted submission (STARTTLS on port 587 or implicit TLS on 465). Modern Gmail access requires either OAuth2 or an App Password for accounts using 2‑step verification — you can’t rely on plain username/password in older “less secure” modes. See Google’s SMTP details and app‑password guidance for exact requirements. (developers.google.com)
How to troubleshoot the “can’t connect / transport failed” symptom: from the server try a network check (ping/DNS), a plain TCP test (telnet or nc) and an SSL/TLS test (openssl s_client) against the SMTP host and port — these show whether the connection is blocked before ASP ever runs. Check Windows firewall, host firewall, and ask the hosting/ISP whether outbound SMTP (especially port 25) is blocked; many providers block port 25 so prefer 587/465 or use a relay. If the server can’t reach external SMTP, use your host’s SMTP or a relay service. (mailtrap.io)
If you prefer the “localhost” path: install/configure the SMTP Server feature on the Windows host, set relay restrictions to allow only the local machine, and point your ASP to the local SMTP listener (this removes external network variables). Also ensure domain authentication (SPF/DKIM/DMARC) is configured so recipients don’t drop your messages — Google’s docs explain SPF setup for domains. These steps let you separate connectivity problems from authentication/deliverability issues. (learn.microsoft.com)
CDOSYS or CDONTS?
For CDOSYS try:
Set ObjSendMail = CreateObject("CDO.Message")
ObjSendMail.Configuration.Fields.Item ("") = 2 'Send using SMTP
ObjSendMail.Configuration.Fields.Item ("") = strMailServer
ObjSendMail.Configuration.Fields.Item ("") = 25
ObjSendMail.Configuration.Fields.Item ("") = strHtmlFormat
ObjSendMail.Configuration.Fields.Item ("") = 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
localhost
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.