Sponsored by
www.aspnetemail.com
|
 |
Discuss This FAQ Item
Got a question? Another Suggestion? Want to post your solution? Discuss it below.
-
CDO.Message Error
[ Reply ]
I got that same error. I have outlook 2003 on my developer pc, and found that the error only comes up when my outlook is closed. On the production pc server 2000, it runs perfectly though.
Gareth [ gareth ( at ) jasper dot co dot za ],
2006-06-12 06:55:12
#
-
RE: CDO.Message Error
[ Reply ]
i found this error only when i created a setup of my windows application and executed on saperate pc ? can any1 help me 2 solve this problem?
Siddhesh [ siddhesh ( at ) gmail dot com ],
2007-01-15 02:24:22
#
-
RE: CDO.Message Error
[ Reply ]
just add this function to your code it will run 100%
Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click Dim myMail As New MailMessage
myMail.From = "123@yahoo.com" myMail.To = "234@yahoo.com" myMail.Subject = "UtilMailMessage001" myMail.Priority = MailPriority.High myMail.BodyFormat = MailFormat.Html myMail.Body = "<html><body>UtilMailMessage001 - success</body></html>"
myMail.Fields.Add("http://schemas.microsoft.com/cdo/configuration/smtpserver", "smtp.gmail.com") myMail.Fields.Add("http://schemas.microsoft.com/cdo/configuration/smtpserverport", 465) myMail.Fields.Add("http://schemas.microsoft.com/cdo/configuration/sendusing", "2") myMail.Fields.Add("http://schemas.microsoft.com/cdo/configuration/smtpauthenticate", "1") myMail.Fields.Add("http://schemas.microsoft.com/cdo/configuration/sendusername", "nyagnesh@gmail.com") myMail.Fields.Add("http://schemas.microsoft.com/cdo/configuration/sendpassword", txtpwd.Text) myMail.Fields.Add("http://schemas.microsoft.com/cdo/configuration/smtpusessl", True) Try 'SmtpMail.SmtpServer.Insert(0, "smtp.gmail.com") SmtpMail.SmtpServer = "smtp.gmail.com" SmtpMail.Send(myMail) MsgBox("ok") Catch ex As Exception MsgBox(ex.ToString & vbCr & ex.Message) End Try End Sub
kunal shah [ kunal dot shah06 ( at ) gmail dot com ],
2008-11-28 03:54:35
#
-
RE RE: CDO.Message Error
[ Reply ]
Thanks a lot!!!!
You saved me a lot of time that I've spent!!!
aev2k
averdesoto [ aev2k ( at ) yahoo dot com ],
2009-04-28 13:46:55
#
-
Could not access CDO.Message object.
[ Reply ]
dear sir, i written a method which will send a mail using mailmessage class.problem is i am created a workflow in sps 2003.for that i am wrriten a mail method using system.web.mail.mailmessage class.as per the user level i am given previleges they can view and they can add a request,here when i am giving the request using my login it is sending the mail to the target person but when i am tryign to give a request from another user it is giving this error.i am not able to understand what i have to do.pls help me today is my last day
vissu [ vissumca ( at ) gmail dot com ],
2007-02-03 00:05:05
#
-
"Could not access 'CDO.Message' Object_Solution
[ Reply ]
Thanks million for your site. I have found the same problem and after unchecking the option "My server requires authentication" in Outlook Express, I can receive all the mail sending from .NET application.
Thanks you again.
Tran Cay [ cayt ( at ) fsoft dot com dot vn ],
2007-04-12 01:56:01
#
-
Could not access 'CDO.Message'
[ Reply ]
from windows service i m getting this error.
payal [ payal ( at ) soluture dot com ],
2007-08-03 06:32:28
#
-
could not create 'cdo.message' object
[ Reply ]
Hi, Good Day!
I'm creating a code for auto sending of email. I included the script of authorization that you have mentioned/suggested before, but it had the same error (Could not create 'CDO.MESSAGE' Object). I tried also to check the IIS, SMTP Server as well as the registry of CDOsys.dll and cdoex.dll, nothing worked.
The following texts are my code:
Dim oMsg As New System.Web.Mail.MailMessage Try oMsg.From = Trim(myfrom) oMsg.To = Trim(myTo) oMsg.Subject = Trim(mySub) oMsg.Body = myMessage oMsg.Priority = MailPriority.Normal oMsg.Fields.Add("http://schemas.microsoft.com/cdo/configuration/smtpauthenticate", "1") oMsg.Fields.Add("http://schemas.microsoft.com/cdo/configuration/sendusername", "isplphil") oMsg.Fields.Add("http://schemas.microsoft.com/cdo/configuration/sendpassword", "isplphil99") oMsg.Fields.Item("http://schemas.microsoft.com/cdo/configuration/sendusing") = 2 oMsg.Fields.Item("http://schemas.microsoft.com/cdo/configuration/smtpserver") = "209.237.26.50" oMsg.Fields.Item("http://schemas.microsoft.com/cdo/configuration/smtpserverport") = 25 oMsg.Fields.Item("http://schemas.microsoft.com/cdo/configuration/smtpconnectiontimeout") = 10000 System.Web.Mail.SmtpMail.Send(oMsg) MessageBox.Show("email send") Catch ex As Exception erroring = ex.ToString 'Message & ex.StackTrace. oMsg = Nothing Finally oMsg = Nothing End Try
Thanks,
Alain
alain morales [ pogicalain ( at ) yahoo dot com ],
2007-09-05 20:56:08
#
-
Could not access 'CDO.Message' object.
[ Reply ]
Hi. I have a screen which sends email on specified recipients. I am getting the error below whenever I send email on recipients with dot in their email address (example: email.user@yahoo.com) but is is working fine on other email addresses.
Could not access 'CDO.Message' object. Exception has been thrown by the target of an invocation. The server rejected one or more recipient addresses. The server response was: 550 #5.1.0 Address rejected.
jen [ shadow_jhen ( at ) yahoo dot com ],
2007-11-29 00:02:20
#
-
The Dreaded
[ Reply ]
I discovered that you get this if your Antivirus is blocking port 25 the machine you are making the call to send the message from as well
Rik0361 [ richard dot hurst ( at ) kirlees dot gov dot uk ],
2008-04-25 07:28:16
#
-
could not access CDO.Message
[ Reply ]
may be you are trying to run this on localhost and you have given SmtpMail.SmtpServer="your server name"; i do this foolish thing.
swati [ swati_bhatnagar2004 ( at ) yahoo dot co dot in ],
2008-06-20 01:30:03
#
-
Outlook Express / Gmail - solved my problem!
[ Reply ]
Exactly as the original poster described -- I removed my Gmail account from Outlook Express, and I no longer receive the "Could not access 'CDO.Message object" error!
FYI, here is the entire exception message I was getting, including the inner exception:
System.Web.HttpException: Could not access 'CDO.Message' object. ---> System.Reflection.TargetInvocationException: Exception has been thrown by the target of an invocation. ---> System.Runtime.InteropServices.COMException (0x80040213): The transport failed to connect to the server.
Marc [ something ( at ) nothing dot net ],
2009-01-09 12:37:54
#
-
Thank you!
[ Reply ]
Amazing!
After reading 1000 of posts and almost giving up there it was, a solution!
Who would thought of it? :)
Thank you, thank you.
Ivica Sakota [ isakota ( at ) gmail dot com ],
2009-07-01 00:39:41
#
|