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.
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.
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!
**********************************************************************
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
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.
Am I missing something. Any direction is appreciated it.
Want to reply to this thread or ask your own question?
You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.