Sponsored by
www.aspnetemail.com
|
 |
Discuss This FAQ Item
Got a question? Another Suggestion? Want to post your solution? Discuss it below.
-
Could not access CDO.Message
[ Reply ]
When the email server goes down, I also get this kind error message. Is there a way to queue the message so that when the system is back up, it can be sent out at that time.
When we use the Outlook, it queues the message when the system is down.
Thanks!
Reader [ jreader ( at ) abc dot com ],
2005-02-11 07:47:08
#
-
RE: Could not access CDO.Message
[ Reply ]
here is the solution
http://spaces.msn.com/members/devicharan/
Here is the SOLUTION [ devicharan dot vinnakota ( at ) majoris dot com ],
2005-04-27 22:54:07
#
-
RE: Could not access CDO.Message
[ Reply ]
Disble the On-Access Scan...
In ur system if it is not server means.... In client system the admin doesnot allow full permission to send all mail etc,,,, 1 -->If u disble the On-Access Scan U can send the mail without this errorr 2 ---> Start the SMTP server also All the best Stella.J Dotnet Programmer
stella [ stellakasthurij ( at ) gmail dot com ],
2006-07-06 22:46:30
#
-
Could not access 'CDO.Message' Object - Part 9
[ Reply ]
This tip is for the absolute beginners.. I just wasted too much time working it out:
Initally I was including the Mail Namespace as per: <%@ Import Namespace="System.Web.Mail" %> ..... Instead of the following:
<%@ Import Namespace="System" %> <%@ Import Namespace="System.Web" %> <%@ Import Namespace="System.Web.Mail" %> <script runat="server">
Sub Page_Load(ByVal sender As Object, ByVal e As EventArgs)
Dim mail As New MailMessage() mail.To = "postmaster@blah.com" mail.From = "postmaster@blah.com" mail.Subject = "Registration" mail.BodyFormat = MailFormat.Html mail.BodyFormat = MailFormat.Text mail.Body = "This is a test" mail.Fields.Add("http://schemas.microsoft.com/cdo/configuration/smtpauthenticate", "1") mail.Fields.Add("http://schemas.microsoft.com/cdo/configuration/sendusername", "postmaster@blah.com") mail.Fields.Add("http://schemas.microsoft.com/cdo/configuration/sendpassword", "blah") System.Web.Mail.SmtpMail.SmtpServer= "mail.blah.com" System.Web.Mail.SmtpMail.Send(mail) End sub
The same applies for c#
Really simple stuff but it caught me out. Good luck if your struggling.
Dave [ dr3df3rn ( at ) hotmail dot com ],
2005-05-27 02:21:11
#
-
RE: Could not access 'CDO.Message' Object - Part 9
[ Reply ]
Hi, I've been trying to work around this error for couple of days:-(
My magical solution was to add this: (C#) msg.Priority = MailPriority.Normal;
It seems like that the SMTP Mail Server has default priority set at High. I've tried all other suggestions in this FAQ (and more) and finally decided to try this line after reading in one of the FAQ's about deleting a line setting MailPriority.High or to change it to MailPriority.Normal. Since I did not set the priority before and added this line I've concluded that my SMTP server must have priority set default to High!! But I've been unable to find out if that was the case. Just happy this is working now:-)
Regards. Matti von Iceland
Matthias Einars [ matti ( at ) hn dot is ],
2005-07-05 15:44:09
#
-
Could not access 'CDO.Message' Object - Part 9
[ Reply ]
At our company, we use the corporate edition of McAfee VirusScan, which blocks TCP Port 25.
Here is a VB.NET workaround that I just devised. Still working on a way to prevent the command prompt NET.EXE windows from appearing:
Sub Main() sendEMail() Console.WriteLine(vbCrLf & "Press a key to exit.") Console.ReadLine() End Sub Private Sub stopMcAfee()
Dim proc As Process proc = Process.Start("NET.EXE", "STOP McAfeeFramework") proc.WaitForExit() proc = Process.Start("NET.EXE", "STOP McShield") proc.WaitForExit()
proc = Process.Start("NET.EXE", "STOP McTaskManager") proc.WaitForExit() End Sub Private Sub startMcAfee()
Dim proc As Process proc = Process.Start("NET.EXE", "START McAfeeFramework") proc.WaitForExit() proc = Process.Start("NET.EXE", "START McShield") proc.WaitForExit()
proc = Process.Start("NET.EXE", "START McTaskManager") proc.WaitForExit() End Sub Private Sub sendEMail() Dim mail As New MailMessage() Dim from As String = "legitimate.account@someplace.com" Dim subject As String = "Test Subject" Dim body As String = _ "<html><body><h1>Test Body</h1><hr><p>Message Content</p></body></html>" SmtpMail.SmtpServer = "yoursmtpserver@yourcompany.com" With mail .From = from .Subject = subject .BodyFormat = MailFormat.Html .Body = body .To = "youremailaddress@yourcompany.com" End With Try Console.WriteLine("Stopping McAfee Services...") stopMcAfee() Console.WriteLine("Sending Email...") SmtpMail.Send(mail) Console.WriteLine("Starting McAfee Services...") startMcAfee() Catch exc As HttpException Console.WriteLine(exc.Message) Console.WriteLine(exc.InnerException.Message) Console.WriteLine(exc.InnerException.InnerException.Message) End Try
End Sub
Mike Labosh [ mlabosh ( at ) hotmail dot com ],
2005-09-28 14:15:30
#
-
RE: Could not access 'CDO.Message' Object - Part 9
[ Reply ]
I did some modifications in Virus scan. Right click on virus scan and go to Virus scan console. Again in the open window right click on Access Protection and click properties. In Port Blocking select Prevent mass mailing worms from sending email and say EDIT.In that EXCLUDED PROCESSES add the exe file and save the properties. It should help and you should be able to send email.
Rahul [ rahulkoneru ( at ) gmail dot com ],
2006-04-26 14:38:48
#
-
Solution for this Could not access 'CDO.Message'
[ Reply ]
Disble the On-Access Scan...
In ur system if it is not server means.... In client system the admin doesnot allow full permission to send all mail etc,,,, 1 -->If u disble the On-Access Scan U can send the mail without this errorr 2 ---> Start the SMTP server also All the best Stella.J Dotnet Programmer
Stella [ stellakasthurij ( at ) gmail dot com ],
2006-07-06 22:45:24
#
-
Could not access 'CDO.Message' Object
[ Reply ]
I got this problem resolved by providing authentication information.
ps [ ps ( at ) ps dot com ],
2006-07-20 08:29:07
#
-
CDO message errors
[ Reply ]
I think, all are leading to a wrong way. Have yo u ever checked that you have CDO DLL installed on your machine.I recently removed MS OUTLOOK 2003 and that stopped me from using SMTP server in VB.NET.
Hope this helps.
kaumil [ kns ( at ) soton dot ac dot uk ],
2007-02-20 03:55:14
#
-
Could not access 'CDO.Message' Object
[ Reply ]
Hi
When i send a mail to outer domains the bellow error is comming if i send with in the domain it is woking fine.
Could not access 'CDO.Message' Object
please help in this.
Thank you in advance
Sarma [ orugantibrothers ( at ) rediff dot com ],
2007-08-31 00:24:10
#
-
also...
[ Reply ]
If that doesn't help I removed a wscript sleep 1000 command and that seems to have helped!
Zulu [ zulu ( at ) b dot com ],
2008-01-15 07:36:09
#
-
Could not access'CDO.MESSAGE'
[ Reply ]
I have several .net 2000 client servier applications that worked fine until our agency policy was to remove adminitrative rights from users machines. Once this was done this error occurred. I have admin rights on all machines so I tried logging on under me, setting STMP and when the user logged in it doesn't work. I tried everything possible that I could think of and nothing worked. Can anyone help?
I added the code which displays errors in more detail. The error I got was "SendUsing" configuration value is invalid.
STEVE [ SZABRETS ( at ) YAHOO dot COM ],
2008-12-18 10:49:05
#
-
RE: Could not access'CDO.MESSAGE'
[ Reply ]
If I had to guess, you don't have the correct permissions on the registry keys to create the CDO objects.
I would use something like Regmon to see if you are getting any access denied errors from the registry.
Cheers! Dave
dave wanta [ dave ( at ) advancedintellect dot com ],
2008-12-18 12:06:28
#
|