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.

Re: SMTP Relay Error using CDONTS and the .CC property in ASP by Bernard

Bernard
Tue Apr 04 09:27:55 CDT 2006

can you post the complete relay message here?

--
Regards,
Bernard Cheah
http://www.iis-resources.com/
http://www.iiswebcastseries.com/
http://msmvps.com/blogs/bernard/


<harpuafsb@gmail.com> wrote in message
news:1144157458.188179.81930@j33g2000cwa.googlegroups.com...
> 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.
>



Re: SMTP Relay Error using CDONTS and the .CC property in ASP by harpuafsb

harpuafsb
Tue Apr 04 10:03:24 CDT 2006

Here is the nondeliverable mail bounce back:

Connection to mail.xxxxx.com with Ip Address 10.1.3.11 failed from
mimesweeper.xxxxx.com-10.1.3.11
test@outsidedomain.com
550 Relaying denied to <test@outsidedomain.com>

And the entry in the system32/logfiles/smtpsvc1 log file is:

NDR Thread NDR message
user+test@outsidedomain.com+in+file+filename.eml+was+NDRed+to+file+filename.eml
0

Thanks!


Re: SMTP Relay Error using CDONTS and the .CC property in ASP by Bernard

Bernard
Wed Apr 05 04:01:30 CDT 2006

both the .to and .cc is same outside domain?

can you post the smtp log here.... ?

--
Regards,
Bernard Cheah
http://www.iis-resources.com/
http://www.iiswebcastseries.com/
http://msmvps.com/blogs/bernard/


<harpuafsb@gmail.com> wrote in message
news:1144163004.439117.19100@u72g2000cwu.googlegroups.com...
> Here is the nondeliverable mail bounce back:
>
> Connection to mail.xxxxx.com with Ip Address 10.1.3.11 failed from
> mimesweeper.xxxxx.com-10.1.3.11
> test@outsidedomain.com
> 550 Relaying denied to <test@outsidedomain.com>
>
> And the entry in the system32/logfiles/smtpsvc1 log file is:
>
> NDR Thread NDR message
> user+test@outsidedomain.com+in+file+filename.eml+was+NDRed+to+file+filename.eml
> 0
>
> Thanks!
>