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 SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Send Mail

Status
Not open for further replies.

Silvinho

Programmer
Jul 9, 2001
58
0
0
GB
I have a web based form that sends some details by e-mail to myself.

The thank you page sends the e-mail but it doesnt seem to be working. the thank you page displays correctly but the e-mail never arrives. heres the code in basic format (without the form details):

Dim objCDO
Set objCDO = Server.CreateObject("CDONTS.NewMail")
objCDO.To = "tset@testmail.com"
objCDO.From = "Test"

objCDO.Subject = "Test Subject"
objCDO.Body = "Test Body"

objCDO.Send

Set objCDO = Nothing

I have used this remote server to send e-mail with this code before with no problems. Is there any other options of sending mail other than CDONTs?
 
You could try using CDONTS as follows

Dim objNewMail, Body
Set objNewMail = Server.CreateObject("CDONTS.NewMail")
objNewMail.To = "you@you.com"
objNewMail.from = "you@you.com"
objNewMail.Subject = "Job Application"
objNewMail.Body = "hello"
objNewMail.Send
 
Silvinho:

Are you sure that CDONTS is installed properly on your server? Or that there are no other "smtp applications" active at the same time?

Check out this link for a possible solution:

DrMaggie ---------
"Those who don't know the mistakes of the past won't be able to enjoy it when they make them again in the future."
— Leonard McCoy, MD (in Diane Duane's Doctor's Orders)
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top