473,320 Members | 1,707 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,320 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 2014
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: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
1
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...

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.