472,794 Members | 1,739 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 472,794 software developers and data experts.

Could not access CDO.message

Hi

i have one Email application.When run that application,i
got an error,
"Could not access 'CDO.Message' object."
i have also configure the SMTP,means right click on the
default SMTP server then select the Access tab,after then
choose the Relay button,in that i gave the IP address of
SMTP server and click on ok
then also it will gives the same error
i have reference of cdosys.dll also

can any one help me?
mamatha

Nov 20 '05 #1
4 1047
Mamaths,

I will not say I can help you however for this problems you have to show
some piece of code. (This can be done in thousand ways)

Cor

i have one Email application.When run that application,i
got an error,
"Could not access 'CDO.Message' object."
i have also configure the SMTP,means right click on the
default SMTP server then select the Access tab,after then
choose the Relay button,in that i gave the IP address of
SMTP server and click on ok
then also it will gives the same error
i have reference of cdosys.dll also

can any one help me?
mamatha

Nov 20 '05 #2


''' set the from address
aMailMessage.From = "km***********@yahoo.co.in"
''' set the to address and subject
aMailMessage.To = "ma***********@yahoo.com"
aMailMessage.Subject = "This is a test email message."

''' send in Text format
aMailMessage.BodyFormat = System.Web.Mail.MailFormat.Text

''' set the body text (Remember you need to keep your paragraphs
to under 1000 characters)
aMailMessage.Body = "This is the text of the email message."

''' add an attachment if you want to
'aMailMessage.Attachments.Add(New
System.Web.Mail.MailAttachment("C:Test.txt",
System.Web.Mail.MailEncoding.Base64))

''' send the email
' System.Web.Mail.SmtpMail.SmtpServer = "203.124.220.78"

System.Web.Mail.SmtpMail.SmtpServer = "209.25.134.124"
System.Web.Mail.SmtpMail.Send(aMailMessage)
MsgBox("Message has sent")

*** Sent via Developersdex http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it!
Nov 20 '05 #3
Mamatha,

I see no problems in the code you sand. Are you sure this 209.25.134.124 is
an SMTP server?

Otherwise try to paste the mailserver from your Outlook in it.
And when it is an Exchange server maybe you can take as well attention to
this

http://msdn.microsoft.com/library/de...vr_cdo_top.asp

Cor
Nov 20 '05 #4
This can be a tough one to debug. The problem is that this error message
gets thrown for a so many reasons that it's almost useless. For example, if
you try to send an email to an email address that has invalid chars like
myemail!@.'aol.com you will get this error message.

I have found that a more helpful error message is sometimes buried two
levels down in the exception object. Once you have caught the exception,
try looking here: myException.InnerException.InnerException.Message. This
may contain a useful message that will point you towards the actual problem.

Hope this helps,

Kevin

"Arne" <Ar**@discussions.microsoft.com> wrote in message
news:F3**********************************@microsof t.com...
I am having the same problem and Cor Ligthert doesn't help

"mamatha" wrote:
Hi

i have one Email application.When run that application,i
got an error,
"Could not access 'CDO.Message' object."
i have also configure the SMTP,means right click on the
default SMTP server then select the Access tab,after then
choose the Relay button,in that i gave the IP address of
SMTP server and click on ok
then also it will gives the same error
i have reference of cdosys.dll also

can any one help me?
mamatha

Nov 21 '05 #5

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

5
by: Tim Eliot | last post by:
Just wondering if anyone has hit the following issue and how you might have sorted it out. I am using the command: DoCmd.TransferText acExportMerge, , stDataSource, stFileName, True after...
2
by: Desmond | last post by:
Hi, I would really appreciate if somebody could give some advise on this. I've a ASP.NET application that is supposed to send emails and it is tested to be working well on IIS 5.0 and tested...
14
by: Gianfranco | last post by:
Hi everybody, First of all, sorry for my english if it isn't perfect ;-p I have an error in an asp.net application. I have win2003 server, with iis 6. I'm developping with visual studio...
8
by: hufaunder | last post by:
I have a website that consumes a webservice. Both of them are in the Default Website folder. I can execute the service without any problem when I go to the test page http://localhost/Service.asmx....
11
by: fniles | last post by:
One of our application uses VB6 and Access97 database. Another application uses VB.NET 2005. This morning for about 15 seconds when the application tries to read either a query or a table from the...
3
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 2 August 2023 starting at 18:00 UK time (6PM UTC+1) and finishing at about 19:15 (7.15PM) The start time is equivalent to 19:00 (7PM) in Central...
0
by: erikbower65 | last post by:
Here's a concise step-by-step guide for manually installing IntelliJ IDEA: 1. Download: Visit the official JetBrains website and download the IntelliJ IDEA Community or Ultimate edition based on...
2
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Sept 2023 starting at 18:00 UK time (6PM UTC+1) and finishing at about 19:15 (7.15PM) The start time is equivalent to 19:00 (7PM) in Central...
0
by: Taofi | last post by:
I try to insert a new record but the error message says the number of query names and destination fields are not the same This are my field names ID, Budgeted, Actual, Status and Differences ...
14
DJRhino1175
by: DJRhino1175 | last post by:
When I run this code I get an error, its Run-time error# 424 Object required...This is my first attempt at doing something like this. I test the entire code and it worked until I added this - If...
0
by: Rina0 | last post by:
I am looking for a Python code to find the longest common subsequence of two strings. I found this blog post that describes the length of longest common subsequence problem and provides a solution in...
5
by: DJRhino | last post by:
Private Sub CboDrawingID_BeforeUpdate(Cancel As Integer) If = 310029923 Or 310030138 Or 310030152 Or 310030346 Or 310030348 Or _ 310030356 Or 310030359 Or 310030362 Or...
0
by: lllomh | last post by:
Define the method first this.state = { buttonBackgroundColor: 'green', isBlinking: false, // A new status is added to identify whether the button is blinking or not } autoStart=()=>{
0
by: lllomh | last post by:
How does React native implement an English player?

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.