
SmtpMail.Send error 'Could not access 'CDO.Message' object.'
Quote:
> >If you plan on using SmtpMail from an ASP.NET app, you MUST
> >use your local SMTP Service, and not an external one.
NOT true, you can use any smtp server in any network as long as it allows
message relaying from your ip.
Following code works:
SmtpMail.SmtpServer = "ven_prox";
MailMessage Mailer = new MailMessage();
Mailer.Subject = "Subject";
Mailer.Body = "Message";
Mailer.BodyFormat = System.Web.Mail.MailFormat.Html;
SmtpMail.Send(Mailer);
or:
SmtpMail.SmtpServer = "localhost";
MailMessage Mailer = new MailMessage();
Mailer.Subject = "Subject";
Mailer.Body = "Message";
Mailer.BodyFormat = System.Web.Mail.MailFormat.Html;
SmtpMail.Send(Mailer);
Regards,
Peter.
Quote:
> On Sun, 29 Sep 2002 21:46:25 GMT, "Chad Myers"
Quote:
> >If you plan on using SmtpMail from an ASP.NET app, you MUST
> >use your local SMTP Service, and not an external one.
> Or you could: either drop email files in a directory for handling by some
other
> process; or you could create an smtp proxy in an exe that does have
permissions
> to create sockets.
> --
> *--------={ Fine Art for .NET }=--------*
> *---------------------------------------*
> Turn on, tune in, download.