473,569 Members | 2,870 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Email error -- CDO.Message Object, could not access

Can anyone help me with this error.
"Could not access 'CDO.Message' object."

This is from the: "SmtpMail.Send( mailMsg)" command.

Nov 17 '05 #1
8 2025
SmtpMail.SmtpSe rver = "[your mail server here]"
Show us more code

"Charles" <cw******@bells outh.net> wrote in message
news:04******** *************** *****@phx.gbl.. .
Can anyone help me with this error.
"Could not access 'CDO.Message' object."

This is from the: "SmtpMail.Send( mailMsg)" command.

Nov 17 '05 #2
SmtpMail.SmtpSe rver = "[your mail server here]"
Show us more code

"Charles" <cw******@bells outh.net> wrote in message
news:04******** *************** *****@phx.gbl.. .
Can anyone help me with this error.
"Could not access 'CDO.Message' object."

This is from the: "SmtpMail.Send( mailMsg)" command.

Nov 17 '05 #3

ok,

Dim mailMsg As New MailMessage()
With mailMsg
.From = txtFrom.Text.Tr im
.To = txtTo.Text.Trim
.Cc = txtCC.Text.Trim
.Bcc = txtBCC.Text.Tri m
.Subject = txtSubject.Text .Trim
.Body = sb.ToString
.Priority = CType(cboPriori ty.SelectedInde x, MailPriority)

If Not IsNothing(arlAt tachments) Then
Dim mailAttachment As Object
For Each mailAttachment In arlAttachments
.Attachments.Ad d(mailAttachmen t)
Next
End If
End With

SmtpMail.SmtpSe rver = "127.0.0.1"
' " I have tried SmtpMail.SmtpSe rver = weiserver, localhost, smarthost,
and 127.0.0.1 "
SmtpMail.Send(m ailMsg)

always the same error and my default SMTP virtual server is running.


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

ok,

Dim mailMsg As New MailMessage()
With mailMsg
.From = txtFrom.Text.Tr im
.To = txtTo.Text.Trim
.Cc = txtCC.Text.Trim
.Bcc = txtBCC.Text.Tri m
.Subject = txtSubject.Text .Trim
.Body = sb.ToString
.Priority = CType(cboPriori ty.SelectedInde x, MailPriority)

If Not IsNothing(arlAt tachments) Then
Dim mailAttachment As Object
For Each mailAttachment In arlAttachments
.Attachments.Ad d(mailAttachmen t)
Next
End If
End With

SmtpMail.SmtpSe rver = "127.0.0.1"
' " I have tried SmtpMail.SmtpSe rver = weiserver, localhost, smarthost,
and 127.0.0.1 "
SmtpMail.Send(m ailMsg)

always the same error and my default SMTP virtual server is running.


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

You are the best.
Thank you. How did you come up with this?
What is the reasoning behind it working.
Is this a SmtpServer Collection that the system will try until it finds a
good one??

Thanks

"Agusitn Rodriguez" <ka************ ***@cox.com> wrote in message
news:OT******** ******@TK2MSFTN GP12.phx.gbl...
I was able to fix many CDO exception related problems like "Could ot
access 'CDO.Message' object" in addition to others by using the following
work around.

<smtpMailObject >.smtpserver.in sert(0,"server name")

insted of

<smtpMailObject >.smtpserver = "server name"

Agustin.

"MS News (MS ILM)" <sq**********@h otmail.com> wrote in message
news:e4******** ******@tk2msftn gp13.phx.gbl...
Have you tried SmtpMail.SmtpSe rver = ""?

"Charles Wildner" <cw******@bells outh.net> wrote in message
news:e0******** ******@TK2MSFTN GP12.phx.gbl...

ok,

Dim mailMsg As New MailMessage()
With mailMsg
.From = txtFrom.Text.Tr im
.To = txtTo.Text.Trim
.Cc = txtCC.Text.Trim
.Bcc = txtBCC.Text.Tri m
.Subject = txtSubject.Text .Trim
.Body = sb.ToString
.Priority = CType(cboPriori ty.SelectedInde x, MailPriority)

If Not IsNothing(arlAt tachments) Then
Dim mailAttachment As Object
For Each mailAttachment In arlAttachments
.Attachments.Ad d(mailAttachmen t)
Next
End If
End With

SmtpMail.SmtpSe rver = "127.0.0.1"
' " I have tried SmtpMail.SmtpSe rver = weiserver, localhost, smarthost, and 127.0.0.1 "
SmtpMail.Send(m ailMsg)

always the same error and my default SMTP virtual server is running.


*** Sent via Developersdex http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it!



Nov 17 '05 #6
Agusitn,

You are the best.
Thank you. How did you come up with this?
What is the reasoning behind it working.
Is this a SmtpServer Collection that the system will try until it finds a
good one??

Thanks

"Agusitn Rodriguez" <ka************ ***@cox.com> wrote in message
news:OT******** ******@TK2MSFTN GP12.phx.gbl...
I was able to fix many CDO exception related problems like "Could ot
access 'CDO.Message' object" in addition to others by using the following
work around.

<smtpMailObject >.smtpserver.in sert(0,"server name")

insted of

<smtpMailObject >.smtpserver = "server name"

Agustin.

"MS News (MS ILM)" <sq**********@h otmail.com> wrote in message
news:e4******** ******@tk2msftn gp13.phx.gbl...
Have you tried SmtpMail.SmtpSe rver = ""?

"Charles Wildner" <cw******@bells outh.net> wrote in message
news:e0******** ******@TK2MSFTN GP12.phx.gbl...

ok,

Dim mailMsg As New MailMessage()
With mailMsg
.From = txtFrom.Text.Tr im
.To = txtTo.Text.Trim
.Cc = txtCC.Text.Trim
.Bcc = txtBCC.Text.Tri m
.Subject = txtSubject.Text .Trim
.Body = sb.ToString
.Priority = CType(cboPriori ty.SelectedInde x, MailPriority)

If Not IsNothing(arlAt tachments) Then
Dim mailAttachment As Object
For Each mailAttachment In arlAttachments
.Attachments.Ad d(mailAttachmen t)
Next
End If
End With

SmtpMail.SmtpSe rver = "127.0.0.1"
' " I have tried SmtpMail.SmtpSe rver = weiserver, localhost, smarthost, and 127.0.0.1 "
SmtpMail.Send(m ailMsg)

always the same error and my default SMTP virtual server is running.


*** Sent via Developersdex http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it!



Nov 17 '05 #7
How did you come up with this? & What is the reasoning behind it working.
- Well the way I figure is that since insert is an inherited method from
string class it would be like accessing and updating the property value from
within

Is this a SmtpServer Collection that the system will try until it finds a
good one??
No, But but you can handle exceptions and have the property updated to the
next server on a list and retry.

"MS News (MS ILM)" <sq**********@h otmail.com> wrote in message
news:em******** ******@TK2MSFTN GP12.phx.gbl...
Agusitn,

You are the best.
Thank you. How did you come up with this?
What is the reasoning behind it working.
Is this a SmtpServer Collection that the system will try until it finds a
good one??

Thanks

"Agusitn Rodriguez" <ka************ ***@cox.com> wrote in message
news:OT******** ******@TK2MSFTN GP12.phx.gbl...
I was able to fix many CDO exception related problems like "Could ot
access 'CDO.Message' object" in addition to others by using the following
work around.

<smtpMailObject >.smtpserver.in sert(0,"server name")

insted of

<smtpMailObject >.smtpserver = "server name"

Agustin.

"MS News (MS ILM)" <sq**********@h otmail.com> wrote in message
news:e4******** ******@tk2msftn gp13.phx.gbl...
Have you tried SmtpMail.SmtpSe rver = ""?

"Charles Wildner" <cw******@bells outh.net> wrote in message
news:e0******** ******@TK2MSFTN GP12.phx.gbl...
>
> ok,
>
> Dim mailMsg As New MailMessage()
> With mailMsg
> .From = txtFrom.Text.Tr im
> .To = txtTo.Text.Trim
> .Cc = txtCC.Text.Trim
> .Bcc = txtBCC.Text.Tri m
> .Subject = txtSubject.Text .Trim
> .Body = sb.ToString
> .Priority = CType(cboPriori ty.SelectedInde x, MailPriority) >
> If Not IsNothing(arlAt tachments) Then
> Dim mailAttachment As Object
> For Each mailAttachment In arlAttachments
> .Attachments.Ad d(mailAttachmen t)
> Next
> End If
> End With
>
> SmtpMail.SmtpSe rver = "127.0.0.1"
> ' " I have tried SmtpMail.SmtpSe rver = weiserver, localhost,

smarthost, > and 127.0.0.1 "
> SmtpMail.Send(m ailMsg)
>
> always the same error and my default SMTP virtual server is running. >
>
>
>
> *** Sent via Developersdex http://www.developersdex.com ***
> Don't just participate in USENET...get rewarded for it!



Nov 17 '05 #8
How did you come up with this? & What is the reasoning behind it working.
- Well the way I figure is that since insert is an inherited method from
string class it would be like accessing and updating the property value from
within

Is this a SmtpServer Collection that the system will try until it finds a
good one??
No, But but you can handle exceptions and have the property updated to the
next server on a list and retry.

"MS News (MS ILM)" <sq**********@h otmail.com> wrote in message
news:em******** ******@TK2MSFTN GP12.phx.gbl...
Agusitn,

You are the best.
Thank you. How did you come up with this?
What is the reasoning behind it working.
Is this a SmtpServer Collection that the system will try until it finds a
good one??

Thanks

"Agusitn Rodriguez" <ka************ ***@cox.com> wrote in message
news:OT******** ******@TK2MSFTN GP12.phx.gbl...
I was able to fix many CDO exception related problems like "Could ot
access 'CDO.Message' object" in addition to others by using the following
work around.

<smtpMailObject >.smtpserver.in sert(0,"server name")

insted of

<smtpMailObject >.smtpserver = "server name"

Agustin.

"MS News (MS ILM)" <sq**********@h otmail.com> wrote in message
news:e4******** ******@tk2msftn gp13.phx.gbl...
Have you tried SmtpMail.SmtpSe rver = ""?

"Charles Wildner" <cw******@bells outh.net> wrote in message
news:e0******** ******@TK2MSFTN GP12.phx.gbl...
>
> ok,
>
> Dim mailMsg As New MailMessage()
> With mailMsg
> .From = txtFrom.Text.Tr im
> .To = txtTo.Text.Trim
> .Cc = txtCC.Text.Trim
> .Bcc = txtBCC.Text.Tri m
> .Subject = txtSubject.Text .Trim
> .Body = sb.ToString
> .Priority = CType(cboPriori ty.SelectedInde x, MailPriority) >
> If Not IsNothing(arlAt tachments) Then
> Dim mailAttachment As Object
> For Each mailAttachment In arlAttachments
> .Attachments.Ad d(mailAttachmen t)
> Next
> End If
> End With
>
> SmtpMail.SmtpSe rver = "127.0.0.1"
> ' " I have tried SmtpMail.SmtpSe rver = weiserver, localhost,

smarthost, > and 127.0.0.1 "
> SmtpMail.Send(m ailMsg)
>
> always the same error and my default SMTP virtual server is running. >
>
>
>
> *** Sent via Developersdex http://www.developersdex.com ***
> Don't just participate in USENET...get rewarded for it!



Nov 17 '05 #9

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

Similar topics

4
3004
by: dmiller23462 | last post by:
So here's my problem.....I need to set up different email distributions based on which option in the following Select form has been chosen....For instance if "Putaway" is chosen it needs to email User1@here.whatever and User4@here.whatever but if "Loaded" is chosen it needs to email User2@here.whatever and User3@here.whatever, etc, etc... ...
5
15920
by: paii, Ron | last post by:
How do I setup a email with attachment for preview but require the user to push the SEND button in Outlook. I have the following function but it sends the email without the sender ever seeing it. Public Function PrintPDFemail2() ' This will create the PDF if the report is setup for it DoCmd.OpenReport "rptJobItemStat", acViewNormal
3
6811
by: VB Programmer | last post by:
I have an ASPX page where I send out emails through my mail server mail.MyDomain.com. When I send emails to MyName@MyDomain.com it sends PERFECTLY. When I try sending an email to any other address (non-MyDomain.com address) I get the following error: The server rejected one or more recipient addresses. The server response was: 550 You must...
2
1462
by: VB Programmer | last post by:
I'm encountering an error whenever I try to email people not in my domain. I get this error: The server rejected one or more recipient addresses. The server response was: 550 You must check your mail from this IP or SMTP Auth before sending to jimmy@juno.com Here's the full error:
3
4544
by: Gerard | last post by:
Hello I have created a windows service to monitor a database, it starts some checks when a timer elapses. The checks send emails depending on their findings. My issue is that when I created a windows application it worked fine, however I need to use a service as I don't want to rely on a user being logged in. The errors I get are: Index...
1
2874
by: mike11d11 | last post by:
If someone could help me, I need to be able to send attachments from my access database that I have created. This database runs queries then generates a report off the queries from underlying tables and emails the reports as HTML format in the body, I then need to have this same process go out to my C:\ drive and pick up a couple files and...
2
2200
by: sunnyko | last post by:
Dear all I am using asp.net in a Small Business Server to send email out ! The programe work fine in XP but show the following error in Small Business Server. I don't know why.... Sunny Server Error in '/email' Application.
10
7916
by: Des | last post by:
I was wondering if anyone could help me out with this. I use Access 2003 to generate certain files and then I convert them to pdf, I was wondering if anyone would know the code I could use where I would have the ability to have them automatically emailed after they're converted to different sources? I can be emailed via...
6
3491
by: Tim Marshall | last post by:
I am having one HELL of a time with sending pdfs that I generate. Outlook is not my preferred mail client but I have the wrethced thing installed so that I can use some late binding technique I discovered via Google groups. What happens is the infernal Outlook security warning appears. Irritating enough when you have dozens of notices going...
9
4918
by: =?Utf-8?B?QW5kcmV3?= | last post by:
Hi, I want to delete my email attachment after sending the email. How do I get around this issue ? I have set up a method to send email using SMTP. public bool CreateMessageWithAttachment() { MailMessage message = new MailMessage(); ....
0
7693
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main...
0
7917
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. ...
1
7665
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For...
0
7962
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the...
1
5501
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes...
0
3631
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
2105
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
1
1207
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
0
933
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating...

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.