Hey, this is a real head scratcher.
The following code works as written:
Set objMail = CreateObject("CDONTS.NewMail")
objMail.From = "test@insidedomain.com"
objMail.To = "test@outsidedomain.com"
objMail.Subject = "SMTP TEST"
objMail.Body = "TESTING"
objMail.Send
Set objMail = Nothing
However if I add the the following code after the .To statement:
objMail.CC = "test@insidedomain.com"
What happens is that the mail gets delivered to the .CC address but a
relay error occurs on the .To address.
Once I take out the .CC statement, the .To address gets the delivery.
Any ideas?
Thanks.
>> Stay informed about: SMTP Relay Error using CDONTS and the .CC property in ASP