noboffinme
Registered User.
- Local time
- Today, 18:27
- Joined
- Nov 28, 2007
- Messages
- 288
Hi
I have a database that will send emails through Outlook (Office 2007) based on a queries results.
I want to limit the number of recipients to be added to each new email so it doesn't exceed the allowed number.
There could be 100s of recipients & I'd like to split them up.
Has anyone developed any code that can do this?
I've found that initiating the email with the below will open the first one;
-----------------------------------------------------
Set outapp = CreateObject("Outlook.Application")
outapp.Session.Logon
Set outmail = outapp.CreateItem(0)
Set cn = CurrentProject.Connection
-----------------------------------------------------
Next I use a loop to add the recipients but after about 70 recipients I want to open another e-mail to add the next 70 recipients & so on.
Any suggestions? Thanks
I have a database that will send emails through Outlook (Office 2007) based on a queries results.
I want to limit the number of recipients to be added to each new email so it doesn't exceed the allowed number.
There could be 100s of recipients & I'd like to split them up.
Has anyone developed any code that can do this?
I've found that initiating the email with the below will open the first one;
-----------------------------------------------------
Set outapp = CreateObject("Outlook.Application")
outapp.Session.Logon
Set outmail = outapp.CreateItem(0)
Set cn = CurrentProject.Connection
-----------------------------------------------------
Next I use a loop to add the recipients but after about 70 recipients I want to open another e-mail to add the next 70 recipients & so on.
Any suggestions? Thanks