J
Joe Fallon
You have a problem with your system clock.
* "Gene Ariani said:I have the following code for SMTP mail program
Dim Message As New System.Web.Mail.MailMessage
Message.To = "(e-mail address removed)"
Message.From = "(e-mail address removed)"
Message.Body = "Test message text"
Message.Subject = "A Test"
System.Web.Mail.SmtpMail.SmtpServer = "mail.mycompany.net"
System.Web.Mail.SmtpMail.Send(Message)
if the To part is to an external address like Message.To = (e-mail address removed)
then I get Could not access 'CDO.Message' object error
however if I change To part to an internal company address like Message.To =
(e-mail address removed) then the code works.
It looks like System.Web.Mail.SmtpMail.SmtpServer is looking for the
recipient SMTP instead of the server.
Gene Ariani said:if the To part is to an external address like Message.To =
(e-mail address removed) then I get Could not access 'CDO.Message' object error
however if I change To part to an internal company address like
Message.To = (e-mail address removed) then the code works.
Cowboy \(Gregory A. Beamer\) said:When email messages are relayed, they can be sent with HELO or EHLO
(extended HELO). When we had a problem getting outside the domain, we moved
from HELO to EHLO. In our case, we were using OpenSmtp, an open source .NET