Wrox Programmer Forums

Need to download code?

View our list of code downloads.

Go Back   Wrox Programmer Forums > ASP.NET and ASP > ASP.NET 1.0 and 1.1 > ASP.NET 1.0 and 1.1 Professional
Password Reminder
Register
| FAQ | Members List | Search | Today's Posts | Mark Forums Read
ASP.NET 1.0 and 1.1 Professional For advanced ASP.NET 1.x coders. Beginning-level questions will be redirected to other forums. NOT for "classic" ASP 3 or the newer ASP.NET 2.0 and 3.5
Welcome to the p2p.wrox.com Forums.

You are currently viewing the ASP.NET 1.0 and 1.1 Professional section of the Wrox Programmer to Programmer discussions. This is a community of tens of thousands of software programmers and website developers including Wrox book authors and readers. As a guest, you can read any forum posting. By joining today you can post your own programming questions, respond to other developers’ questions, and eliminate the ads that are displayed to guests. Registration is fast, simple and absolutely free .
DRM-free e-books 300x50
 
 
Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old January 5th, 2006, 09:58 AM
Authorized User
 
Join Date: Sep 2005
Location: Karachi, , Pakistan.
Posts: 21
Thanks: 0
Thanked 0 Times in 0 Posts
Default Error in sending email from asp.net

hi,
i am trying to send email through asp.net and getting the following error

Could not access 'CDO.Message' object.

please help
thanks in advance


asif
__________________
asif
  #2 (permalink)  
Old January 6th, 2006, 07:01 AM
Friend of Wrox
 
Join Date: Jun 2003
Location: Copenhagen, , Denmark.
Posts: 440
Thanks: 0
Thanked 0 Times in 0 Posts
Default

I have been struggling with that one too. There is a lot of information on the Internet about that one. After searching for a quite a while I found that I had to set the SmtpServer to the empty string, like this...
Code:
SmtpMail.SmtpServer = "";
Naturally it doesn't work on my local environment, but when deploy the project at my web hotel it works. I am not saying that this will solve your problem, since the error can be a lot of things. However, I would like to have saved the time trying this to start with.

Let me know if it works,
Jacob.
  #3 (permalink)  
Old January 6th, 2006, 10:09 AM
Authorized User
 
Join Date: Sep 2005
Location: Karachi, , Pakistan.
Posts: 21
Thanks: 0
Thanked 0 Times in 0 Posts
Default

thanks for your suggestion, but it is not working.
my application is uploaded, please tell me another solution.
i also search net for this error, and people said that it is a permisson problem of smtp virtual server. in my pc i think i have not any smtp virtual server and if you konw about it please tell me about how i can find it that i have virtual server and if i have not how i can install it , i have win xp service pack 1, thanks again.

asif
  #4 (permalink)  
Old January 7th, 2006, 05:21 PM
Authorized User
 
Join Date: Sep 2005
Location: Karachi, , Pakistan.
Posts: 21
Thanks: 0
Thanked 0 Times in 0 Posts
Default

my problem was smtp service i reinstall it and the problem is solved now there is no execption but the mail is also not send
i use

SmtpMail.SmtpServer = System.Environment.MachineName

it is working when i use
mail.to=localhost
other wise mail is not send
anyone know

asif
  #5 (permalink)  
Old January 7th, 2006, 05:22 PM
Authorized User
 
Join Date: Sep 2005
Location: Karachi, , Pakistan.
Posts: 21
Thanks: 0
Thanked 0 Times in 0 Posts
Default

my problem was smtp service i reinstall it and the problem is solved now there is no execption but the mail is also not send
i use

SmtpMail.SmtpServer = System.Environment.MachineName

it is working when i use
mail.to=localhost
other wise mail is not send
anyone know so please help

asif
 


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
How to Sending an email in asp.net 2.0 using C# Bashu C# 2005 4 August 14th, 2007 03:29 AM
Sending Email with ASP.NET stu9820 ASP.NET 1.0 and 1.1 Basics 19 February 9th, 2007 03:50 AM
sending email using .net 1.1 socket error amol.mahajan85@gmail.com ASP.NET 1.0 and 1.1 Basics 1 December 17th, 2006 06:25 PM
sending email through asp.net amol.mahajan85@gmail.com .NET Framework 1.x 2 October 19th, 2006 12:13 PM



All times are GMT -4. The time now is 03:05 PM.


Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
© 2013 John Wiley & Sons, Inc.