Signup · Login
Stardeveloper.com  
Home · Tutorials · Forums · ASP.NET Newsletter Application · Web Hosting Plans · Faisal Khan's Blog · Contact
Forums : .NET : ASP.NET : Could not access 'CDO.Message' object Signup · Login
Author Thread
Could not access 'CDO.Message' object
Posted in tutorial: Sending Email with attachments from an ASP.NET page
·  s_niladri
User
Joined: 15 Jun 2004
Total Posts: 1

Could not access 'CDO.Message' object

Posted: 15 Jun 2004
When I try to Send email from asp.net by SMTP services
the following message comes "Could not access 'CDO.Message' object". But if don't use the SmtpServer then it is ok and send mail successfully. But when I am using SmtpServer the above message comes.
How to solve this ??

I have signed here for solving my queries regarding devolopment
·  sakiv
User
Joined: 2 May 2005
Total Posts: 1
Solution to the CDO.Message error
Posted: 2 May 2005
To use the SmtpServer of .Net you have to follow one of the two options:

1. Give a valid SMTP server IP address in the smtpserver property of the SmtpMail object (note this smtpserver should allow the anonymous access to send the mails)

2. Install a mail server on your machine. IIS also comes with an in-built SMTP service, you can also use that. To work with it you have to give the relay access rights to IP address of the local machine or you can also specify 127.0.0.1 in it. Now give this IP address also in the smtpserver property of the SmtpMail object also.

Hope this will solve your problem.

Or you can also contact me on sakiv77@gmail.com for any further queries.
Want to leave a comment? Login or Register for free!

Users Who Have Visited This Thread In Last 24 Hours
3 Visitors

Login to post a comment or start a new thread
UserName Or Email Address:       Password:       Auto-Login:    
· Create New User Account
· Send Forgotten Password by Email
 
© 1999 - 2010 Stardeveloper.com, All Rights Reserved.