Can someone explain why the following doesn't work?
<%
sch = "http://schemas.microsoft.com/cdo/configuration/"
Set cdoConfig = CreateObject("CDO.Configuration")
With cdoConfig.Fields
..Item(sch & "smtpserver") = "mail.midvalleyfurniture.com"
..item("http://schemas.microsoft.com/cdo/configuration/sendusing").value
=2
..item("http://schemas.microsoft.com/cdo/configuration/smtpauthenticate").value
= 1
..item("http://schemas.microsoft.com/cdo/configuration/sendpassword").value
="yadayadayada"
..item("http://schemas.microsoft.com/cdo/configuration/sendusername").value
="or****@myserver.com"
..update
End With
Set cdoMessage = CreateObject("CDO.Message")
With cdoMessage
Set .Configuration = cdoConfig
.From = "or****@myserver.com"
.To = "so******@somedomain.com"
.Subject = "Daily Report"
.TextBody = mailMessage
.Send
End With
Set cdoMessage = Nothing
Set cdoConfig = Nothing
%>
If I take out the 3 authentication lines and send an email that's on
the same domain server (br***@myserver.com to ch***@myserver.com), it
goes through.
If outside the domain, I put the 3 lines back in and though I receive
no error message, the mail doesn't go through.
Thanks for any help,
Brett