PDA

View Full Version : Form to mail troubles


Slurry
07-08-2002, 10:57 AM
I created a simple form to mail script using CDONTS server object.
The script would work instantly and the email with the correct infor in it would arrive. However, the email would never be recieved by other email addresses. I thought it could be a forwarding issue, it wasnt that. I tried multiple emails; some would recieve the email others wouldnt.

Could anyone tell me what sort of things could cause this or what Im doing wrong.

This code is basically what it involves:

Set objCDO = Server.CreateObject("CDONTS.NewMail")

email="myemail@mail.com, etc..."
objCDO.To = email
objCDO.From = "whatever"
objCDO.cc = "whatever"
objCDO.bcc = "whatever"

txtMessage = "whatever"

objCDO.Subject = "whatever
objCDO.Body = txtMessage
objCDO.Send
Set objCDO = Nothing

Thanks

ecnarongi
07-09-2002, 04:02 PM
I don't like CDONTS I use ASP mail. ASP mail IMO is easier to use. I know that does nothing for your question :( but maybe it's another option.

whammy
07-10-2002, 01:49 AM
Did you try using a valid "from" address?