Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Westi on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

I am trying to use CDONTS as follow

Status
Not open for further replies.

sweevo

Programmer
Jan 30, 2002
182
GB
I am trying to use CDONTS as follows:

set objCDOMail = Server.CreateObject("CDONTS.NewMail")

with objCDOMail
.From = strFrom
.To = strTo
.Subject = strSubject
.Body = strBody
.Send
end with

set objCDOMail = Nothing

There are no error messages but no email is sent. Is there anything wrong with the code above or anything I need to check regarding CDONTS configuration on the server?

Thanks.
 
Is the SMTP service running on the server? Tony
reddot.gif WIDTH=300 HEIGHT=2 VSPACE=3

 
I'm not particularly experienced with server stuff... I know CDONTS is installed but don't know about setting up the SMTP stuff, if you could help.

The email address is valid, so I'm assuming it's a configuration issue.

Cheers.
 
OK I've sorted it now. I didn't have the "Smart Host" value set to my SMTP server.

Thanks.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top