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 / February 2006

Tip: Looking for answers? Try searching our database.

Calling on Outlook and sending an email to multiple addresses

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
TADropik - 27 Feb 2006 22:26 GMT
In my access module I call on Outlook and automatically send emails.
Basically my code reads as follows to set up the CC address:

Dim stEmailAddress As STring
Set objOutlookRecip = .Recipients.Add(stEmailAddress)
objOutlookRecip.Type = olCC

Everything works great as long as stEmailAddress contains only 1 email address
ie: stEmailAddress = "tom@Address.com"
If I want to send to multiple address,
ie: stEmailAddress = "tom@Address.com; ted@company.com"
it only sends it to 'ted@company.com'

Is it possible to send to multiple addresses?
Is is a matter of syntax?

Thanks in advance.
Martin - 28 Feb 2006 14:01 GMT
I don't know why your code isn't working but I've always had problems
including multiple addresses explicitly divided by semicolons.  An
alternative approach which seems more reliable is to loop, using the
Recipients.Add line repeatedly to add multiple individual addresses without
using the semicolon.

> In my access module I call on Outlook and automatically send emails.
> Basically my code reads as follows to set up the CC address:
[quoted text clipped - 13 lines]
>
> Thanks in advance.
 
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.