CDo's

A

Annette

I am using CDo's to send emails with attachments. Everything appears
to be working fine, except only the people within our organization are
receiving the emails. People outside our company are not. We use
Exchange.
 
A

Al Campagna

Annette,
This newsgroup deals with Microsoft Access, a relational database
application.
You'll have better luck posting your question to a group that deals with
Exchange.
--
hth
Al Campagna
Microsoft Access MVP
http://home.comcast.net/~cccsolutions/index.html

"Find a job that you love... and you'll never work a day in your life."
 
A

Annette

Annette,
    This newsgroup deals with Microsoft Access, a relational database
application.
    You'll have better luck posting your question to a group that deals with
Exchange.
--
    hth
    Al Campagna
    Microsoft Access MVP
   http://home.comcast.net/~cccsolutions/index.html

    "Find a job that you love... and you'll never work a day in your life."






- Show quoted text -

Thank you for the response. I am using an Access database and cycling
through a table of email addresses to send a PDF of a report from the
database of transactions that happened the previous day. Sorry, I
didn't explain that first.
 
A

Al Campagna

Annette,
This newsgroup deals with Microsoft Access, a relational database
application.
You'll have better luck posting your question to a group that deals with
Exchange.
--
hth
Al Campagna
Microsoft Access MVP
http://home.comcast.net/~cccsolutions/index.html

"Find a job that you love... and you'll never work a day in your life."






- Show quoted text -

Thank you for the response. I am using an Access database and cycling
through a table of email addresses to send a PDF of a report from the
database of transactions that happened the previous day. Sorry, I
didn't explain that first.

Annette,
Okay, my bad...but I must say... it still sounds like a Exchange issue.
I'm not familiar with the term "CDo's".
It might be helpful to include your table's "essential" structure, and
the code you're using.

Someone else may jump in on this. If not, you can try a new post
with (Repost) in the subject.
--
Al Campagna
Microsoft Access MVP
http://home.comcast.net/~cccsolutions/index.html

"Find a job that you love... and you'll never work a day in your life."
 
P

Paul Shapiro

It's been a while since I worked with CDO, but I would guess that it's
making an unauthenticated connection with Exchange. So Exchange is accepting
the internal mail, since that's it's native domain, but rejecting the "relay
attempt" to external domains. See if CDO can be authenticated, which might
fix the problem, or ask your Exchange admin to allow relay from your
computer. They might not want to do that since it is a security risk.

Or you could change to using Outlook, or other mail providers, to send the
mails. CDO is deprecated and is not even included on the Office 2007
distribution. It won't be around for much longer I think. For pre-2007
Outlook versions you can either use a free 3rd-party tool to work around the
Outlook object model security guard, or get your Exchange admin to make some
settings to allow use of the Outlook object model. With Outlook 2007, it's
easier. As long as Windows believes you have up-to-date virus protection,
Outlook allows full use of the object model.

What Office version are you using? Are you the only user or are there others
too? Is the application only run inside the office LAN?
 
A

Annette

It's been a while since I worked with CDO, but I would guess that it's
making an unauthenticated connection with Exchange. So Exchange is accepting
the internal mail, since that's it's native domain, but rejecting the "relay
attempt" to external domains. See if CDO can be authenticated, which might
fix the problem, or ask your Exchange admin to allow relay from your
computer. They might not want to do that since it is a security risk.

Or you could change to using Outlook, or other mail providers, to send the
mails. CDO is deprecated and is not even included on the Office 2007
distribution. It won't be around for much longer I think. For pre-2007
Outlook versions you can either use a free 3rd-party tool to work around the
Outlook object model security guard, or get your Exchange admin to make some
settings to allow use of the Outlook object model. With Outlook 2007, it's
easier. As long as Windows believes you have up-to-date virus protection,
Outlook allows full use of the object model.

What Office version are you using? Are you the only user or are there others
too? Is the application only run inside the office LAN?






- Show quoted text -

Thank you all for your responses. I was using Outlook in the beginning
but kept getting those pesky messages about "sending email on behalf".
Since I did not want a user to have to intervene with the sending of
these emails (to about 10 people), I decided to switch to CDO. I am
more than willing to switch back to Outlook if I can get rid of the
"send on your behalf" messages.

Any ideas?
 
A

Al Campagna

It's been a while since I worked with CDO, but I would guess that it's
making an unauthenticated connection with Exchange. So Exchange is
accepting
the internal mail, since that's it's native domain, but rejecting the
"relay
attempt" to external domains. See if CDO can be authenticated, which might
fix the problem, or ask your Exchange admin to allow relay from your
computer. They might not want to do that since it is a security risk.

Or you could change to using Outlook, or other mail providers, to send the
mails. CDO is deprecated and is not even included on the Office 2007
distribution. It won't be around for much longer I think. For pre-2007
Outlook versions you can either use a free 3rd-party tool to work around
the
Outlook object model security guard, or get your Exchange admin to make
some
settings to allow use of the Outlook object model. With Outlook 2007, it's
easier. As long as Windows believes you have up-to-date virus protection,
Outlook allows full use of the object model.

What Office version are you using? Are you the only user or are there
others
too? Is the application only run inside the office LAN?






- Show quoted text -

Thank you all for your responses. I was using Outlook in the beginning
but kept getting those pesky messages about "sending email on behalf".
Since I did not want a user to have to intervene with the sending of
these emails (to about 10 people), I decided to switch to CDO. I am
more than willing to switch back to Outlook if I can get rid of the
"send on your behalf" messages.

Any ideas?
-----------------------------------------------
Annette,
"sending email on behalf"
I have never used Outlook, but I wonder if there is an
option/configuration/code for turning that off.
A Google on... "Microsoft" "CDO" "turn off" "your behalf" ... yielded
quite a few links to solutions.
Here's one...
http://msdn.microsoft.com/en-us/library/aa168346.aspx

--
hth
Al Campagna
Microsoft Access MVP
http://home.comcast.net/~cccsolutions/index.html

"Find a job that you love... and you'll never work a day in your life."
 
H

hor vannara

"Annette" <[email protected]> a écrit dans le message de
Annette,
This newsgroup deals with Microsoft Access, a relational database
application.
You'll have better luck posting your question to a group that deals with
Exchange.
--
hth
Al Campagna
Microsoft Access MVP
http://home.comcast.net/~cccsolutions/index.html

"Find a job that you love... and you'll never work a day in your life."






- Show quoted text -

Thank you for the response. I am using an Access database and cycling
through a table of email addresses to send a PDF of a report from the
database of transactions that happened the previous day. Sorry, I
didn't explain that first.
 
P

Paul Shapiro

ContextMagic makes a free utility to automate Outlook warning approval. It's
worked great for my own use and at all my clients.
http://www.contextmagic.com/express-clickyes/

You set it to start automatically with Windows. I always set it up to start
Disabled, meaning it's NOT helping. That keeps the Outlook "safety" system
in place. My code uses a single routine to send email. That routine includes
code to automatically enable Express Click-Yes before creating the email,
and to disable it again after sending the email.

If you only send email once in a while, you might not want to bother with
this. When you get that warning message from Outlook, I think there's a
dropdown to tell it how long to allow programmatic access. If you set it to
the max value and click OK, you should be able to easily send the 10 emails.

If you're considering upgrading to Office 2007 sometime soon, that also
solves the problem since the warning is automatically suppressed if you have
up-to-date antivirus protection. I prefer that approach.

It's been a while since I worked with CDO, but I would guess that it's
making an unauthenticated connection with Exchange. So Exchange is
accepting
the internal mail, since that's it's native domain, but rejecting the
"relay
attempt" to external domains. See if CDO can be authenticated, which might
fix the problem, or ask your Exchange admin to allow relay from your
computer. They might not want to do that since it is a security risk.

Or you could change to using Outlook, or other mail providers, to send the
mails. CDO is deprecated and is not even included on the Office 2007
distribution. It won't be around for much longer I think. For pre-2007
Outlook versions you can either use a free 3rd-party tool to work around
the
Outlook object model security guard, or get your Exchange admin to make
some
settings to allow use of the Outlook object model. With Outlook 2007, it's
easier. As long as Windows believes you have up-to-date virus protection,
Outlook allows full use of the object model.

What Office version are you using? Are you the only user or are there
others
too? Is the application only run inside the office LAN?






- Show quoted text -

Thank you all for your responses. I was using Outlook in the beginning
but kept getting those pesky messages about "sending email on behalf".
Since I did not want a user to have to intervene with the sending of
these emails (to about 10 people), I decided to switch to CDO. I am
more than willing to switch back to Outlook if I can get rid of the
"send on your behalf" messages.

Any ideas?
 
A

Annette

ContextMagic makes a free utility to automate Outlook warning approval. It's
worked great for my own use and at all my clients.
   http://www.contextmagic.com/express-clickyes/

You set it to start automatically with Windows. I always set it up to start
Disabled, meaning it's NOT helping. That keeps the Outlook "safety" system
in place. My code uses a single routine to send email. That routine includes
code to automatically enable Express Click-Yes before creating the email,
and to disable it again after sending the email.

If you only send email once in a while, you might not want to bother with
this. When you get that warning message from Outlook, I think there's a
dropdown to tell it how long to allow programmatic access. If you set it to
the max value and click OK, you should be able to easily send the 10 emails.

If you're considering upgrading to Office 2007 sometime soon, that also
solves the problem since the warning is automatically suppressed if you have
up-to-date antivirus protection. I prefer that approach.








Thank you all for your responses. I was using Outlook in the beginning
but kept getting those pesky messages about "sending email on behalf".
Since I did not want a user to have to intervene with the sending of
these emails (to about 10 people), I decided to switch to CDO. I am
more than willing to switch back to Outlook if I can get rid of the
"send on your behalf" messages.

Any ideas?- Hide quoted text -

- Show quoted text -

I have been looking at the ClickYes and think it may work for me.
Are you able to send me the statements you use to enable clickyes and
disable clickyes?

Thank you so much!!!
 
P

Paul Shapiro

Here are two bits of code. First the code to use the class, and then the
class code itself.
ClickYes has to be running. This code doesn't start it up, it just enables
it.
I set ClickYes to autostart, but to start Suspended (meaning disabled).

*** Code to use the class when you send mail
Dim oClickYes As OutlookClickYes
oClickYes.ClickYesStart
'Send your email
oClickYes.ClickYesStop

*** Copy this code into a new class module. I named mine OutlookClickYes.
Option Compare Database
Option Explicit

'Module variables
Private mlngWnd As Long 'Window handle for
ExpressClickYes
Private mlngMsgClickYesSuspendResume As Long 'Message Identifier to
send ExpressClickYes for resume/suspend

' Declare Windows' API functions
Private Declare Function RegisterWindowMessage _
Lib "user32" Alias "RegisterWindowMessageA" _
(ByVal lpString As String) As Long

Private Declare Function FindWindow Lib "user32" _
Alias "FindWindowA" (ByVal lpClassName As Any, _
ByVal lpWindowName As Any) As Long

Private Declare Function SendMessage Lib "user32" _
Alias "SendMessageA" (ByVal hWnd As Long, _
ByVal wMsg As Long, ByVal wParam As Long, _
lParam As Any) As Long

Private Sub Class_Initialize()
' Register a message to send
mlngMsgClickYesSuspendResume =
RegisterWindowMessage("CLICKYES_SUSPEND_RESUME")

' Find ClickYes Window by classname
mlngWnd = FindWindow("EXCLICKYES_WND", 0&)
End Sub

Public Function ClickYesStart() As Boolean
Dim Res As Long
'Send the message to Resume ClickYes
Res = SendMessage(mlngWnd, mlngMsgClickYesSuspendResume, 1, 0)

'Succeeded if we get here? Successful result code JUST comes from
testing. _
NOT VERY RELIABLE.
ClickYesStart = (Res = 0 Or Res = 1308434)
'Debug.Print "MsgID=" & mlngMsgClickYesSuspendResume & "; WindowHandle="
& mlngWnd & "; Result=" & Res
End Function

Public Function ClickYesStop() As Boolean
Dim Res As Long
'Send the message to Suspend ClickYes
Res = SendMessage(mlngWnd, mlngMsgClickYesSuspendResume, 0, 0)

'Succeeded if we get here? Successful result code JUST comes from
testing. _
NOT VERY RELIABLE.
ClickYesStop = (Res = 0 Or Res = 1308434)
End Function


ContextMagic makes a free utility to automate Outlook warning approval.
It's
worked great for my own use and at all my clients.
http://www.contextmagic.com/express-clickyes/

You set it to start automatically with Windows. I always set it up to
start
Disabled, meaning it's NOT helping. That keeps the Outlook "safety" system
in place. My code uses a single routine to send email. That routine
includes
code to automatically enable Express Click-Yes before creating the email,
and to disable it again after sending the email.

If you only send email once in a while, you might not want to bother with
this. When you get that warning message from Outlook, I think there's a
dropdown to tell it how long to allow programmatic access. If you set it
to
the max value and click OK, you should be able to easily send the 10
emails.

If you're considering upgrading to Office 2007 sometime soon, that also
solves the problem since the warning is automatically suppressed if you
have
up-to-date antivirus protection. I prefer that approach.








Thank you all for your responses. I was using Outlook in the beginning
but kept getting those pesky messages about "sending email on behalf".
Since I did not want a user to have to intervene with the sending of
these emails (to about 10 people), I decided to switch to CDO. I am
more than willing to switch back to Outlook if I can get rid of the
"send on your behalf" messages.

Any ideas?- Hide quoted text -

- Show quoted text -

I have been looking at the ClickYes and think it may work for me.
Are you able to send me the statements you use to enable clickyes and
disable clickyes?

Thank you so much!!!
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top