Wrox Programmer Forums
|
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 software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old January 5th, 2006, 09:58 AM
Authorized User
 
Join Date: Sep 2005
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
 
Old January 6th, 2006, 07:01 AM
Friend of Wrox
 
Join Date: Jun 2003
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.
 
Old January 6th, 2006, 10:09 AM
Authorized User
 
Join Date: Sep 2005
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
 
Old January 7th, 2006, 05:21 PM
Authorized User
 
Join Date: Sep 2005
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
 
Old January 7th, 2006, 05:22 PM
Authorized User
 
Join Date: Sep 2005
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





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 [email protected] ASP.NET 1.0 and 1.1 Basics 1 December 17th, 2006 06:25 PM
sending email through asp.net [email protected] .NET Framework 1.x 2 October 19th, 2006 12:13 PM





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