Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
Discussion GroupsFormsForms ProgrammingQueriesModules / DAO / VBAReports / PrintingMacrosDatabase DesignSecurityConversionImporting / LinkingSQL Server / ADPMultiuser / NetworkingReplicationSetup / ConfigurationDeveloper ToolkitsActiveX ControlsNew UsersGeneral 1General 2
Access DirectoryToolsTutorialsUser Groups
Related Topics
SQL ServerOther DB ProductsMS OfficeMore Topics ...

MS Access Forum / Modules / DAO / VBA / September 2007

Tip: Looking for answers? Try searching our database.

Error message sending Email via CDO

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
SHIPP - 27 Sep 2007 00:37 GMT
I got the following code from Paul Sadowski's web page.

Dim objMessage as object

Set objMessage = CreateObject("CDO.Message")
objMessage.Subject = Me.Subject
objMessage.From = "MikeShipp@aol.com"
objMessage.To = strTo
objMessage.TextBody = strEMsg
objMessage.AddAttachment "c:\temp\readme.txt"
objMessage.Send

When I run it I get the following error:

The "Send Using" configuration value is invalid.

at the following line of code.

objMessage.Send

Any help would be appreciated. I am using
Access 2003. The reason I need to go in this
direction is because I need to send an attachment
through an email program other than Outlook.
Thanks in advance for your help.
SteveM - 27 Sep 2007 02:23 GMT
Are you on Exchange Server?

The CDO code is slightly different...

Steve

> I got the following code from Paul Sadowski's web page.
>
[quoted text clipped - 21 lines]
> through an email program other than Outlook.
> Thanks in advance for your help.
SHIPP - 27 Sep 2007 14:53 GMT
No.
Signature

M. Shipp

> Are you on Exchange Server?
>
[quoted text clipped - 27 lines]
> > through an email program other than Outlook.
> > Thanks in advance for your help.
Alex Dybenko - 27 Sep 2007 05:50 GMT
Hi,
you need to specify configuration, look here:
http://support.microsoft.com/kb/302839/en-us
http://support.microsoft.com/kb/816789/en-us
http://support.microsoft.com/kb/555287/en-us

Signature

Best regards,
___________
Alex Dybenko (MVP)
http://alexdyb.blogspot.com
http://www.PointLtd.com

>I got the following code from Paul Sadowski's web page.
>
[quoted text clipped - 21 lines]
> through an email program other than Outlook.
> Thanks in advance for your help.
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.