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' Object - Part 7
[ Reply ]
So what is the app to add to the exclusion list of the McAfee 8 port blocking filter?
Erick [ erick ( at ) ericklarson dot NET ],
2004-11-17 18:45:03
#
-
RE: Could not access 'CDO.Message' Object - Part 7
[ Reply ]
Due to past issues with McAfee disrupting our custom apps, we always point the finger there first. Here's what we have run into with various versions of McAfee antivirust: 1: Caused OLE automation to fail between vb6 app and MS office products. 2: Message boxes without text in vb.net app (buffer overflow protection) 3: Blocks system.web.mail use (mass mailing worm restriction as David pointed out) 4: Interfered with RightFax services
SgtD [ david dot corbett ( at ) unifiedllc dot com ],
2004-11-22 15:03:40
#
-
RE: Could not access 'CDO.Message' Object - Part 7
[ Reply ]
I had McAfee Antivirus on my server with On-Access Scan enabled. This was preventing the virtual mail server to read/write mail in the outbound, after i disable the On-Access Scan...i was able to send emails...no more CDO.Message error.
Neil Nelson [ neil_nelson ( at ) hotmail dot com ],
2005-02-10 13:00:13
#
-
RE: Could not access 'CDO.Message' Object - Part 7
[ Reply ]
You can add ASPNET_WP.EXE to the list of processes mentioned above. Funny they didn't mention it in the article!
Wish I had seen this post HOURS ago. A thousand thanks to the brilliant people hosting this information. If only Microsoft would have a clue, maybe they would post this kind of stuff.
John [ jrichview ( at ) hotmail dot com ],
2005-02-16 13:09:21
#
-
RE RE: Could not access 'CDO.Message' Object - Part 7
[ Reply ]
Oh...guess I should mention that ASPNET_WP.EXE is only useful for web applications. For Windows apps you would probably have to use your process's name, or you could just disable on-access scan as the other guy did.
I have found that McAfee really slows down compiles on Visual C++ 6.0, in case you're using that, you probably need to disable on-access scan anyway.
John [ jrichview ( at ) hotmail dot com ],
2005-02-16 13:11:50
#
-
RE: RE RE: Could not access 'CDO.Message' Object - Part 7
[ Reply ]
I basically tried about everything on this LONG list. I finally compared the DLL's on my Windows 2000 server with the two PC's that were running the application flawlessly. The Server had a newer version of the cdosys.dll. I replaced it with an older version and registered it and VOILA. It worked. 4 hours of trying fix after fix gets pretty frustrating when replacing a newer DLL with an older DLL fixes the problem. Whatever happened to backward compatible?
SmoothDog [ waded ( at ) slfc dot com ],
2005-05-12 15:06:55
#
-
RE: RE RE: Could not access 'CDO.Message' Object - Part 7
[ Reply ]
Yes Disabling the On Access Scan worked beautifully, i am using Biztalk to send out emails and this happened to me.
Raj [ raj ( at ) hotmail dot com ],
2006-07-11 01:22:05
#
-
RE RE: Could not access 'CDO.Message' Object - Part 7
[ Reply ]
And its aspnet_wp.exe if its Win2k. For Windows 2003 its w3wp.exe.
Joe Rattz [ joe ( at ) rattz dot com ],
2005-09-16 11:40:27
#
-
RE: Could not access 'CDO.Message' Object - Part 7
[ Reply ]
Just to add to the discussion: I had the same problem. I was able to get the process to work by blocking Inbound traffic on the SQL server and leaving the Exchange Server's MacAfee settings the same (blocking Outbound). I did not have to totally disable the "Prevent mass mailing worms from sending mail" function.
Ross [ rculver ( at ) alliant-solutions dot com ],
2005-07-14 09:10:31
#
-
Support Urgent
[ Reply ]
Hi i was trying to send an email from my aspnet application. i got too much irritated that it was giving me errors for one week. i read these articles and i have made some changes in my smtp settings asd in my code.Now it is not giving an error but it is keeping as idle after some seconds with no responds.iam working in a domain but trying to send mail from localhost. my code is as following. Can you help me please.
Dim msg As New MailMessage msg.From = "nishat@tam2004.com" msg.To = "pvaskar1@rediffmail.com" msg.Subject = "My Job" msg.BodyFormat = MailFormat.Text msg.Body = "hai hello. Over" SmtpMail.SmtpServer = "" SmtpMail.Send(msg) Response.Write("Sent The Message")
Askar [ pvaskar1 ( at ) rediffmail dot com ],
2005-01-11 01:55:46
#
-
Thank you, thank you, thank you!
[ Reply ]
I've been pulling out what little hair i have left this morning trying to track this down.
Goddam crappy AV software! These things should come with a health warning.
Ade [ not ( at ) hotmail dot com ],
2005-01-11 03:29:43
#
-
problem while sending throu Lotus Notes
[ Reply ]
Hi, I have written a piece of code to send mail throu Asp.net. Mail sends when the smtp server is an Exchange server. But it says "Unable to connect to server" when the smtp server is Lotus Notes. Pls explain me the steps to do to connect with Lotus Notes.
Vivek
vivek [ vivek ( at ) mailinator dot com ],
2005-01-25 03:46:04
#
-
Dreaded CDO.Message fix
[ Reply ]
This will set the mailobj to just put the message in the pickup folder - great for development when you don't want to use the darn SMTP server.
mailObj.Fields.Add("http://schemas.microsoft.com/cdo/configuration/sendusing",1);
Anonymous [ mranonymous ( at ) yahoo dot com ],
2005-03-29 11:40:37
#
-
RE: Dreaded CDO.Message fix
[ Reply ]
If I then get: (InnerException) "Error message was The Pickup directory path is required and was not specified"
What do I need to do then
RFS [ rune ( at ) vrk dot dk ],
2005-06-07 04:09:26
#
-
Sending email by using asp.net
[ Reply ]
I want to send email by using asp.net. But it give error.
The transport failed to connect to the server.
This is my sample code:
Dim msg As New MailMessage msg.From = "pandiyan.dharumanaiker@cognizant.com" msg.To = "pandiyan.dharumanaiker@cognizant.com" msg.Subject = "My Job" 'msg.BodyFormat = mailformat.Text msg.BodyFormat = Text msg.Body = "hai hello. Over" SmtpMail.SmtpServer = "ctsintcosxuc.cts.com" SmtpMail.Send(msg) Response.Write("sent the message")
I need very urgently. Plz tell me how to send email.
Prasanna S [ prasanna dot sukumar ( at ) cognizant dot com ],
2005-04-26 23:34:02
#
-
RE: Sending email by using asp.net
[ Reply ]
hi I have to used Win XP or technology is Microsoft .NET 2003......... but I want using sending with attachment thougth email by using asp.net..... So I don't whatever problem created in that........ or SMTP server doen't response...... So..... Please tell me......... What i can do..... give me good solution about that
Saurabh [ saurabh_bhabhor ( at ) yahooo dot co dot in ],
2007-11-28 01:34:08
#
BIG thanks! :)
[ Reply ]
I've spent 3 hours trying to fault find this - trying countless fixes then came across yours...
...and now my code works perfectly fine :)
Don't you just love those one's where you think - why didn't I think of that before? :p
Great website btw, very helpful.
Mat Brunt [ matbrunt ( at ) gmail dot com ],
2005-05-06 07:10:11
#
SWEET - GOOD TIP
[ Reply ]
Spent a huge amount of time on this very issue, looked at my firewall, looked at the settings in the smtp server settings, looked at just about every property page in iis - nothing worked. Turned off the freaking worm protection on port 25 - bamm! Freaking amazing - btw, do not just turn this off, you should add your app as an exception item, this would be the dll in the bin directory of your asp.net app that actually sends the mail.
Aaron [ aramirez ( at ) focusdx dot com ],
2005-06-02 10:14:04
#
SMTPMail.SMTPServer.Insert is WRONG
[ Reply ]
SMTPMail.SMTPServer.Insert does not update SMTPMail.SMTPServer -it does NOTHING. Check it out in the debugger. This is the same as NOT setting the SMTP server to use - in which case it will work in default mode... that is it will send mail t to the pickup directory of the locally installed SMTP server. When in doubt, check the online docs or MSDN.
Use: SMTPMail.SMTPServer = "myserver".
Note: Sending email to the pickup directory of a locally installed SMTP server is a better way to go since it unties your code's thread from being tied-up with talking to a remote server. Your code will run faster and be more fault tolorant. The local SMTP server can handle the relay of the message from there - your code does not need to know if the remote SMTP server is online or not. All your code needs to do is send by pickup and let the local SMTP server do its job.
Again: If use the Insert method, its only working because there is a locally installed SMTP server, not because its using the server specified.
dseph2000 [ dseph2000 ( at ) hotmail dot com ],
2005-08-24 09:41:24
#
-
RE: SMTPMail.SMTPServer.Insert is WRONG
[ Reply ]
Thank you for the help!!! I'll repeat: DO NOT USE SMTPSERVER INSERT!!! I've been banging my head against the wall for days trying to debug this. This is what works:
SmtpMail.SmtpServer = "Your server name"
Thanks for being here,
Bill
Bill Farrell [ wfarrell ( at ) provbank dot com ],
2005-12-28 11:44:46
#
Solve my problem, too!
[ Reply ]
Thanks Justin and David! You guys rock. I had the same problem with the same error message, and have spent almost entire day to figure out. We verified the remote SMTP server config, our servers etc. with no avail. But then, you are right ... it was our Antivirus setting that blocks the usage of Port 25 as the cause of the problem. We solved it by entering our program in its exclusion list. Regards.
Noval [ ntriadi ( at ) somewhere dot com ],
2005-10-13 16:48:35
#
Error only when sending in html format
[ Reply ]
Hi!
I'm getting the infamous: Could not access 'CDO.Message' error, but only when I try to send the email with the body set to MailFormat.Html... anyone..?
Atli [ atli dot thordar ( at ) gmail dot com ],
2005-10-24 04:25:25
#
-
RE: Error only when sending in html format
[ Reply ]
I am having the same problem. I can send text email just fine, but cannot send email when the MailFormat is set to Html. Did you ever solve the problem?
Thanks,
Karen
Karen [ karen ( at ) webexc dot com ],
2006-01-12 18:17:16
#
More Could not access CDO Object problems....
[ Reply ]
I am getting a message that is not covered here, or anywhere else it seems.. 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 (0x8004020E): The server rejected the sender address. The server response was: 505 Secure channel required
I have had replaying enabled and i am specifying our exchange box as the smtp mail server (that is where relaying is enabled for my web server).
Any ideas on this one??
TIA
Ian
Ian [ i_moores ( at ) hotmail dot com ],
2005-11-01 00:56:20
#
Thanks
[ Reply ]
Hello,
thanks to Justin and David for this 'on the Point Solution'
Thanks also to the others for such a great help site
Cu Olaf
Olaf Jagdfeld [ jagdfeld ( at ) fev dot de ],
2005-11-03 04:13:36
#
Thanks
[ Reply ]
Thank you for this. It helped me track down the problem.
Tim Almond [ tim dot almond ( at ) gmail dot com ],
2006-01-24 02:11:33
#
another BIG THANKS!
[ Reply ]
good on ya!
Lutz [ lutz dot winter ( at ) holocentric dot com ],
2006-01-30 22:12:11
#
"Error Could not Access CDO.Message Object"
[ Reply ]
hi ! i m using vb.net 2.0 and trying to send mail through system.web.Mail i hav visual source safe installed . My code works fine and sends mail in individual application but when i include this code in VSS it give me Above error also executable of individual app works fine but app under VSS genrated executable dont... belows is the function i hav write for sending mail
Public Function sendMail(ByVal SmtpServer As String, _ ByVal strFrom As String, _ ByVal strTo As String, _ ByVal strBCCs As String, _ ByVal strCCs As String, _ ByVal strSubject As String, _ ByVal strAttatchedFiles As String, _ ByVal strMessageBody As String ) As Boolean
Dim Counter As Integer Try 'Some Validation Goes Here 'Now Comes the Code Part 'Set the properties 'Assign the SMTP server objMail.SmtpServer = SmtpServer 'Multiple recepients can be specified using ; as the delimeter 'Address of the recipient Mailmsg.Priority = MailPriority.Normal Mailmsg.To = strTo Mailmsg.From = strFrom
'Mail Subject Mailmsg.Subject = strSubject 'Attach the files one by one For Counter = 0 To strAttatchedFiles.Split(";").Length - 1 Attachment = New MailAttachment(CType(strAttatchedFiles.Split(";")(Counter), String)) 'Add it to the mail message Mailmsg.Attachments.Add(Attachment) Next 'Mail Body Mailmsg.Body = strMessageBody 'Call the send method to send the mail objMail.Send(Mailmsg) Return True Catch ex As Exception Throw ex End Try End Function
regards Abubakar
Muhammad Abubakar Dar [ abubakarchand ( at ) hotmail dot com ],
2006-02-06 01:26:40
#
Another cause for the error
[ Reply ]
I pulled my hair out over this one for awhile too. I sympathize with all those that have this problem as the error message gives very little specifics to go on. Be sure to look over your email carefully as well - we found some bold pipe characters in our emails that were giving us this error. We have an outside party creating our emails and in the translation from the creator to us - these characters are generated (if anyone know the cause of this -PLEASE let me know).
rob kurtz [ rob ( at ) kurtz dot net ],
2006-02-15 12:25:11
#
-
RE: Another cause for the error
[ Reply ]
Yeah, I ran into that too. Here's a brief and whimsical write up of what you need to fix it:
http://willcode.blogspot.com/2004/12/smtp-sending-mail-from-aspnet.html
Here's the short list: * Turn the SMTP service on through Manage My Computer, IIS, etc.
* Set the SmtpServer to the local machine (127.0.0.1)
* Turn on Relaying for SMTP (Manage computer; Services; IIS, Default SMTP virtual server; Access tab; Relay restrictions and check "allow all computers that succcessfully authenticate to relay regardless of the list above.")
That seems to do it!
dz [ dzornow ( at ) yahoo dot com ],
2006-02-28 12:58:22
#
Adding Excluded process to AntiVirus
[ Reply ]
Great site - thank you!
I also eventually tracked down this problem to the AntiVirus and the blocked port setting. This is how we added our program to the list of excluded processes:
1. Added the path to the program in the System Variable 'Path' 2. Added the name of the program in the list of excluded processes.
It took us a while to figure out that we needed to add the path to the System variable so that AntiVirus would recognize our program.
Hope that this saves someone else troubleshooting time.
Michelle
Michelle [ mpleumeekers ( at ) yahoo dot com ],
2006-03-10 12:56:21
#
Excelent!
[ Reply ]
It is indeed a very specific issue but it saved my day. I took out the protection for Port 25 and my application worked again!!
Francisco [ famobregon ( at ) hotmail dot com ],
2006-08-15 03:59:32
#
help
[ Reply ]
i get the following error while sending mail through smtp server
Exception has been thrown by the target of an invocation. At least one recipient is required, but none were found.
maimsg.from=""; mailmsg.to=""; etc. are set to a value.
It's urgent.
pranav [ nb_tarani ( at ) rediffmail dot com ],
2006-09-05 22:34:19
#
Could not access 'CDO.Message' object
[ Reply ]
I got the following err message when I develop a web method: 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 (0x8004020C): At least one recipient is required, but none were found. Thanks for any suggestion.
Allan [ allan dot chen ( at ) oocl dot com ],
2006-09-26 17:34:26
#
Mail Error
[ Reply ]
Hi , Can anybody tell me what's the problem with my code. i am using asp.net and when i check my inner exceptions, it gives different errors
1.The message could not be sent to the SMTP server. The transport error code was 0x80040217. The server response was not available
2.System.Runtime.InteropServices.COMException (0x80040211): The message could not be sent to the SMTP server. The transport error code was 0x80040217. The server response was not available
3.The message could not be sent to the SMTP server. The transport error code was 0x80040217. The server response was not available
why i get , every time a different error and what is the solution for that.
Plz do reply !!!!!!
Gaurav Yakhmi [ gauravyakhmi ( at ) gmail dot com ],
2006-11-27 02:20:39
#
I solve that problem
[ Reply ]
Dear all,
I had the same problem. So, I discovery that putting some .exe in the "Prevent mass mailing worms from sending mail" on VirusScan I can allow send e-mail throw the port 25.
The .exe are aspnet_wp.exe,w3wp.exe,DLLHOST.EXE.
Hope help you.
Thanks and regards,
Eduardo
Carlos Eduardo Pinto [ test ( at ) test dot com ],
2006-12-05 05:22:47
#
Email not sent
[ Reply ]
hi this is my code I get an error saying "Sender rejected"421 command timeout. hwo do i resolve this error?
Dim Email As New System.Net.Mail.MailMessage("from@email.com", "to@email.com")
Email.Subject = "test subject" Email.Body = "this is a test"
Dim mailClient As New System.Net.Mail.SmtpClient()
'This object stores the authentication values Dim basicAuthenticationInfo As New System.Net.NetworkCredential("credentialid", "credentialpwd")
mailClient.Host = "hostname" mailClient.EnableSsl = False mailClient.UseDefaultCredentials = False mailClient.Credentials = basicAuthenticationInfo mailClient.Send(Email)
mithila [ lalitha ( at ) expertoutsource dot com ],
2007-10-29 01:27:20
#
Thanks!
[ Reply ]
Thanks a lot. It helped me fix my problem!
Regards, Andy
Andy [ senaninda ( at ) yahoo dot com ],
2007-12-06 09:58:04
#
The message could not be sent to the SMTP server. The transport error code was 0x800ccc15. The server response was not available
[ Reply ]
while i trying to send mail from my framework i got this error
The message could not be sent to the SMTP server. The transport error code was 0x800ccc15. The server response was not available is there any way to break this problem.
i cann't understand by the people specified for the same prob which one i got
venkat [ vengat dot n ( at ) gmail dot com ],
2008-02-28 23:24:44
#
Thanks for the fantastic post. I got my issue cleared.
[ Reply ]
Thanks for the fantastic post. I got my issue cleared.
Saranyan [ saranyan dot y ( at ) gmail dot com ],
2008-03-27 07:24:10
#
|