Sending Mail using CDO

  • Thread starter Kurien Baker Fenn
  • Start date
K

Kurien Baker Fenn

I am using CDONTS to send a mail.There is no error in the code and it says
that the mail has been send successfully,But i am not receiving any
mails.please help.

The Code

Set vobjMail = CreateObject("CDO.Message")
vobjMail.From= Email address
vobjMail.To= Email address
vobjMail.Subject= The subject
vobjMail.TextBody= The Body
vobjMail.Send

set vobjMail=nothing
 
M

Moorthy

First of all, You must check the SMTP service and then check is there any
firewall blocking SMTP services.
 
B

Bullschmidt

One thing that helped me once was to make sure the From e-mail address
is really from an e-mail account on that Web site on that server.

Also here's an interesting link:

VBScript To Send Email Using CDO
http://www.paulsadowski.com/WSH/cdo.htm
Interesting about halfway down is: Sending a text email using
authentication against a remote SMTP server

Best regards,
J. Paul Schmidt, Freelance ASP Web Designer
http://www.Bullschmidt.com
ASP Design Tips, ASP Web Database Demo, Free ASP Bar Chart Tool...

<<
I am using CDONTS to send a mail.There is no error in the code and it
says
that the mail has been send successfully,But i am not receiving any
mails.please help.

The Code

Set vobjMail = CreateObject("CDO.Message")
vobjMail.From= Email address
vobjMail.To= Email address
vobjMail.Subject= The subject
vobjMail.TextBody= The Body
vobjMail.Send

set vobjMail=nothing
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,744
Messages
2,569,484
Members
44,904
Latest member
HealthyVisionsCBDPrice

Latest Threads

Top