if i use try catch block then ex.message returns "Could not access 'CDO.Message' object." VB Code: Dim mail As New Mail.MailMessage Dim SmtpMail As Mail.SmtpMail subscribe Build Your Own ASP.NET 3.5 Web Site Using C# & VB, 3rd Edition - Free 219 Page Preview! RoadRunner? No, create an account now. http://gsbook.org/could-not/could-not-access-cdo-message-object-c.php
Could not access 'CDO.Message' object. My machine is connected with internet and i tried with the SMTP default setting to "localhost" and '127.0.0.1" Private Sub SendMail(ByVal strSubject As String, ByVal sbMessage As String) Make sure smtp service is running on web server and appropriate settings are done. 2 If yes then is there any firewall/proxy, antivirus which is blocking port 25. New Post CDO.Message "\n" mishandling [ Reply ] For whatever reason, when using code similar to the following:text = System.Text.RegularExpressions.Regex.Replace(text, "
","\n")msg.Body = text;causes a CDO.Message problem.Sending the message even to https://forums.asp.net/t/888871.aspx?SMTP+server+Could+not+access+CDO+Message+object+
Selecting "All except the list below" fixes the problem. also check that you have latest version on IIS on your pc. Tim Reynolds, Oct 25, 2004, in forum: Microsoft VB .NET Replies: 2 Views: 438 CT Oct 26, 2004 Could not access CDO.Message Object.
I also checked the suggestion given by Elizabeth. You may have to register before you can post: click the register link above to proceed. Cor > > I have a VB.Net app that needs to send mail. Jan 9 '06 #5 P: n/a Lucky hi, i had this problem when i was learning mailing through vs2003.
Also, thank you for the post to work around the problem, using "\r\n"! So, sys admin once again verified the access and everything. Then turn off IIS webserver but leave SMTP server running. Find all posts by begin_with_A #13 07-21-2003, 06:33 PM maddmatt Newcomer Join Date: Jul 2003 Posts: 1 "Could not access 'CDO.Message' object".
Does this sample work for you (notice that I forgot to specify the SMTP server):
Could not access 'CDO.Message' object. http://www.systemwebmail.com/faq/4.2.8.aspx Therefore, the following must be set in IIS: 1. I did reimage of VISTA and its working now. Mark Weaver [ mark dot e dot weaver ( at ) mail dot sprint dot com ], 2005-03-10 14:12:03 # Could not access 'CDO.Message' object asp.net [ Reply ] i
It runs on windows 2000 server (with 1.1), but fails on 2003. 8. http://gsbook.org/could-not/message-system-data-sqlclient-sqlexception-could-not-allocate-space-for-object.php If you do, try to comment the line 'smt.SmtpServer = "[my email server]"' and you local SMTP server is going to be used by default. __________________ Stream of Consciousness (My blog) Jun 26, 2005 09:53 PM|J7Mitch|LINK Hi spb_ny, You are correct. I think MS just likes to play with us.
My code is below, I have included three different ways that I have tried it, and both VB.Net options fail, any help will be greatly appreciated. -- Thank you, Anthony Fine I can successfuly send an e-mail from a laptop using System.Web.Mail.SmtpMail. RSS 9 replies Last post Jul 05, 2005 12:26 PM by billgates ‹ Previous Thread|Next Thread › Print Share Twitter Facebook Email Shortcuts Active Threads Unanswered Threads Unresolved Threads Support Options http://gsbook.org/could-not/could-not-access-cdo-message-object-windows-xp.php Find all posts by maddmatt #14 08-11-2003, 07:13 AM zoltan Newcomer Join Date: Aug 2003 Posts: 1 Does anyone know how to save the email to a directory?
Check out http://systemwebmail.com/faq/4.2.3.aspx Report abuse Reply 10 years ago by viru Viru , India Joined 10 years ago ThanX 4 reply. also check that you have latest version of IIS with latest Service Pack on your pc. Regards, Lee L-MOORE View Public Profile Find all posts by L-MOORE #20 11-26-2003, 08:49 AM Barry NewcomerPreferred language:vb.net Join Date: Nov 2003 Location: UK Posts: 2 Ensure that
Sign Up Now! Thanks Elizabeth! -------------------------------------------------------------------------------------- Thanks for your very useful web site at http://www.systemwebmail.com. I can succesfully send an > e-mail when I use the CreateObject("CDO.Message") method, but it fails when > trying to send using VB.Net. Reply J7Mitch Member 2 Points 2626 Posts Re: SMTP server : Could not access 'CDO.Message' object.
I used the code in an ASP.NET webpage running on local machine and the email is sent. The code I have used is: Dim objMail As New System.Web.Mail.MailMessage() objMail.Subject = "SMS Threshold Alert" objMail.To = Me.ThresholdEmailAddress objMail.Bcc = "[email protected]" objMail.From = ConfigurationSettings.AppSettings.Get("EMAIL_SENDER") objMail.BodyFormat = Mail.MailFormat.Html objMail.Body = "Hi cloud rainda replied to How to convert between TS f... this contact form Jun 24, 2005 07:51 PM|big146|LINK If your smtp is on the same server as your web host,try putting "localhost" instead of "mail.yourdomain.com" Reply spb_ny None 0 Points 55 Posts Re: SMTP
Jun 24, 2005 04:55 PM|spb_ny|LINK This was configured this properly - with correct addresses Reply big146 None 0 Points 57 Posts Re: SMTP server : Could not access 'CDO.Message' object. Thanks!!!