multiplex77
Programmer
I'm using CDONTS to send out email from my ASP app:
Dim objMail, rsMail, result
Set objMail = CreateObject("CDONTS.NewMail")
objMail.From = FromEmail 'variable set earlier in code
objMail.To = ToEmail
objMail.Cc = CcEmail
objMail.Subject = Subject
objMail.Body = Msg
objMail.Send
One of my clients (where I installed the code) keeps getting an error at the "objMail.Send" line (no error message, though), which I can't figure out. Some points to note:
1. I can't replicate the error on my server, neither does it happen to any of my other clients.
2. I have another simple test page called sendmail.asp doing something like this:
Dim objMail, rsMail, result
Set objMail = CreateObject("CDONTS.NewMail")
objMail.From = Request.Form("From")
objMail.To = Request.Form("To")
objMail.Cc = Request.Form("Cc")
objMail.Subject = Request.Form("Subject")
objMail.Body = Request.Form("Msg")
objMail.Send
This one has no problems, even with this client.
3. All machines (mine, my clients) are using W2K Server or Pro.
Question: What could be the reason for this error? Under what conditions does CDONTS error out? I've tried blank fields and they all stil don't cause an error.
Please help. Thanks much!