473,411 Members | 2,185 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

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

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 2018
SmtpMail.SmtpServer = "[your mail server here]"
Show us more code

"Charles" <cw******@bellsouth.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.SmtpServer = "[your mail server here]"
Show us more code

"Charles" <cw******@bellsouth.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.Trim
.To = txtTo.Text.Trim
.Cc = txtCC.Text.Trim
.Bcc = txtBCC.Text.Trim
.Subject = txtSubject.Text.Trim
.Body = sb.ToString
.Priority = CType(cboPriority.SelectedIndex, MailPriority)

If Not IsNothing(arlAttachments) Then
Dim mailAttachment As Object
For Each mailAttachment In arlAttachments
.Attachments.Add(mailAttachment)
Next
End If
End With

SmtpMail.SmtpServer = "127.0.0.1"
' " I have tried SmtpMail.SmtpServer = weiserver, localhost, smarthost,
and 127.0.0.1 "
SmtpMail.Send(mailMsg)

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.Trim
.To = txtTo.Text.Trim
.Cc = txtCC.Text.Trim
.Bcc = txtBCC.Text.Trim
.Subject = txtSubject.Text.Trim
.Body = sb.ToString
.Priority = CType(cboPriority.SelectedIndex, MailPriority)

If Not IsNothing(arlAttachments) Then
Dim mailAttachment As Object
For Each mailAttachment In arlAttachments
.Attachments.Add(mailAttachment)
Next
End If
End With

SmtpMail.SmtpServer = "127.0.0.1"
' " I have tried SmtpMail.SmtpServer = weiserver, localhost, smarthost,
and 127.0.0.1 "
SmtpMail.Send(mailMsg)

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**************@TK2MSFTNGP12.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.insert(0,"server name")

insted of

<smtpMailObject>.smtpserver = "server name"

Agustin.

"MS News (MS ILM)" <sq**********@hotmail.com> wrote in message
news:e4**************@tk2msftngp13.phx.gbl...
Have you tried SmtpMail.SmtpServer = ""?

"Charles Wildner" <cw******@bellsouth.net> wrote in message
news:e0**************@TK2MSFTNGP12.phx.gbl...

ok,

Dim mailMsg As New MailMessage()
With mailMsg
.From = txtFrom.Text.Trim
.To = txtTo.Text.Trim
.Cc = txtCC.Text.Trim
.Bcc = txtBCC.Text.Trim
.Subject = txtSubject.Text.Trim
.Body = sb.ToString
.Priority = CType(cboPriority.SelectedIndex, MailPriority)

If Not IsNothing(arlAttachments) Then
Dim mailAttachment As Object
For Each mailAttachment In arlAttachments
.Attachments.Add(mailAttachment)
Next
End If
End With

SmtpMail.SmtpServer = "127.0.0.1"
' " I have tried SmtpMail.SmtpServer = weiserver, localhost, smarthost, and 127.0.0.1 "
SmtpMail.Send(mailMsg)

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**************@TK2MSFTNGP12.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.insert(0,"server name")

insted of

<smtpMailObject>.smtpserver = "server name"

Agustin.

"MS News (MS ILM)" <sq**********@hotmail.com> wrote in message
news:e4**************@tk2msftngp13.phx.gbl...
Have you tried SmtpMail.SmtpServer = ""?

"Charles Wildner" <cw******@bellsouth.net> wrote in message
news:e0**************@TK2MSFTNGP12.phx.gbl...

ok,

Dim mailMsg As New MailMessage()
With mailMsg
.From = txtFrom.Text.Trim
.To = txtTo.Text.Trim
.Cc = txtCC.Text.Trim
.Bcc = txtBCC.Text.Trim
.Subject = txtSubject.Text.Trim
.Body = sb.ToString
.Priority = CType(cboPriority.SelectedIndex, MailPriority)

If Not IsNothing(arlAttachments) Then
Dim mailAttachment As Object
For Each mailAttachment In arlAttachments
.Attachments.Add(mailAttachment)
Next
End If
End With

SmtpMail.SmtpServer = "127.0.0.1"
' " I have tried SmtpMail.SmtpServer = weiserver, localhost, smarthost, and 127.0.0.1 "
SmtpMail.Send(mailMsg)

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**********@hotmail.com> wrote in message
news:em**************@TK2MSFTNGP12.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**************@TK2MSFTNGP12.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.insert(0,"server name")

insted of

<smtpMailObject>.smtpserver = "server name"

Agustin.

"MS News (MS ILM)" <sq**********@hotmail.com> wrote in message
news:e4**************@tk2msftngp13.phx.gbl...
Have you tried SmtpMail.SmtpServer = ""?

"Charles Wildner" <cw******@bellsouth.net> wrote in message
news:e0**************@TK2MSFTNGP12.phx.gbl...
>
> ok,
>
> Dim mailMsg As New MailMessage()
> With mailMsg
> .From = txtFrom.Text.Trim
> .To = txtTo.Text.Trim
> .Cc = txtCC.Text.Trim
> .Bcc = txtBCC.Text.Trim
> .Subject = txtSubject.Text.Trim
> .Body = sb.ToString
> .Priority = CType(cboPriority.SelectedIndex, MailPriority) >
> If Not IsNothing(arlAttachments) Then
> Dim mailAttachment As Object
> For Each mailAttachment In arlAttachments
> .Attachments.Add(mailAttachment)
> Next
> End If
> End With
>
> SmtpMail.SmtpServer = "127.0.0.1"
> ' " I have tried SmtpMail.SmtpServer = weiserver, localhost,

smarthost, > and 127.0.0.1 "
> SmtpMail.Send(mailMsg)
>
> 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**********@hotmail.com> wrote in message
news:em**************@TK2MSFTNGP12.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**************@TK2MSFTNGP12.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.insert(0,"server name")

insted of

<smtpMailObject>.smtpserver = "server name"

Agustin.

"MS News (MS ILM)" <sq**********@hotmail.com> wrote in message
news:e4**************@tk2msftngp13.phx.gbl...
Have you tried SmtpMail.SmtpServer = ""?

"Charles Wildner" <cw******@bellsouth.net> wrote in message
news:e0**************@TK2MSFTNGP12.phx.gbl...
>
> ok,
>
> Dim mailMsg As New MailMessage()
> With mailMsg
> .From = txtFrom.Text.Trim
> .To = txtTo.Text.Trim
> .Cc = txtCC.Text.Trim
> .Bcc = txtBCC.Text.Trim
> .Subject = txtSubject.Text.Trim
> .Body = sb.ToString
> .Priority = CType(cboPriority.SelectedIndex, MailPriority) >
> If Not IsNothing(arlAttachments) Then
> Dim mailAttachment As Object
> For Each mailAttachment In arlAttachments
> .Attachments.Add(mailAttachment)
> Next
> End If
> End With
>
> SmtpMail.SmtpServer = "127.0.0.1"
> ' " I have tried SmtpMail.SmtpServer = weiserver, localhost,

smarthost, > and 127.0.0.1 "
> SmtpMail.Send(mailMsg)
>
> 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
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...
5
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. ...
3
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...
2
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...
3
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...
1
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...
2
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 ...
10
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...
6
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...
9
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()...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
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...
0
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...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...

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.