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
project on SourceForge:
http://sourceforge.net/projects/opensmtp-net/ Did not realize the sysdate issue, so I would try there before moving to
another piece of software.
--
Gregory A. Beamer
MVP; MCP: +I, SE, SD, DBA
**********************************************************************
Think Outside the Box!
**********************************************************************
[quoted text, click to view] "Gene Ariani" <karadur@comcast.net> wrote in message
news:6umdnUHcu8N8jYLdRVn-gg@comcast.com...
> I have the following code for SMTP mail program
>
> Dim Message As New System.Web.Mail.MailMessage
> Message.To = "gariani@yahoo.com"
> Message.From = "gariani@mycompany.net"
> 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 =
gariani@yahoo.com
> then I get Could not access 'CDO.Message' object error
> however if I change To part to an internal company address like Message.To
=
> gariani@mycompany.net then the code works.
>
> It looks like System.Web.Mail.SmtpMail.SmtpServer is looking for the
> recipient SMTP instead of the server.
>
> Am I missing something. Any direction is appreciated it.
>
>