SmtpMail.Send error 'Could not access 'CDO.Message' object.' 
Author Message
 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.




Mon, 28 Mar 2005 16:37:04 GMT  
 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.

YES true because the ASP.NET process does not have permissions to create
sockets to external addresses, it seems.

I could not create a socket to another address other than 127.0.0.1 or
localhost.

-c

Quote:


> > On Sun, 29 Sep 2002 21:46:25 GMT, "Chad Myers"


> > >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.




Mon, 28 Mar 2005 22:22:00 GMT  
 
 [ 2 post ] 

 Relevant Pages 

1. Could not access 'CDO.Message' object

2. system.web.mail.smtpmail can't access CDO objects

3. Exception when using SmtpMail.Send() - Could not access 'CDO.Message' object

4. 'Coudn't access CDO.Message object' error message

5. "Could not access 'CDO.Message' object." exception

6. CFile not working properly, can't figure out why (last message not sent properly)

7. Message sent when 'X'?

8. 'Inline' related error message

9. 'licenses.licx' error message

10. CopyFileEX() error: 'Access is denied.'

11. CopyFileEX() error: 'Access is denied.'

12. InstallUtil 'Exception error, object expected'

 

 
Powered by phpBB® Forum Software