Send email ?

J

JT

I have 200 records in my table (ContactName, ShippedDate and ContactEmail
columns) and I have one report Letter.
Base on my records I need to send 200 emails separately with attached report
(in pdf format) and send “TO:†would be whatever in my ContactEmail column.
I know how to send one at the time. How to send 200 emails without clicking
200 times to send button?

DoCmd.SendObject acReport, stDocName, acFormatSNP, strTo, strCC, ,
strSubject, strMsg, True
When I set from True to False. I don’t see any more MS Outlook everytime I
try to send but I get for each email MS Outlook message:

Microsoft Office Outlook ‘A program is trying to send email on your behalf.
Do you want to allow this? If this is unexpected, it may be a virus and you
should choose “Noâ€. ‘

So I need click 200 times ‘Yes’, which is same thing.

How to send 200 emails without clicking 200 times to send button?
 
T

Tony Toews [MVP]

JT said:
I have 200 records in my table (ContactName, ShippedDate and ContactEmail
columns) and I have one report Letter.
Base on my records I need to send 200 emails separately with attached report
(in pdf format) and send “TO:” would be whatever in my ContactEmail column.
I know how to send one at the time. How to send 200 emails without clicking
200 times to send button?

DoCmd.SendObject acReport, stDocName, acFormatSNP, strTo, strCC, ,
strSubject, strMsg, True

This will create the report in Snapshot format. The best solution for
PDF files is Stephen Lebans solution. A2000ReportToPDF is an Access
2000 database containing a function to convert Reports and Snapshot
files to PDF documents. No PDF Printer driver is required.
http://www.lebans.com/reporttopdf.htm
Microsoft Office Outlook ‘A program is trying to send email on your behalf.
Do you want to allow this? If this is unexpected, it may be a virus and you
should choose “No”. ‘

So I need click 200 times ‘Yes’, which is same thing.

How to send 200 emails without clicking 200 times to send button?

See the Outlook specific links at the Access Email FAQ at my website.
http://www.granite.ab.ca/access/email/outlook.htm
There are two solutions there.

Tony
--
Tony Toews, Microsoft Access MVP
Please respond only in the newsgroups so that others can
read the entire thread of messages.
Microsoft Access Links, Hints, Tips & Accounting Systems at
http://www.granite.ab.ca/accsmstr.htm
Tony's Microsoft Access Blog - http://msmvps.com/blogs/access/
 
J

JT

How to send 200 emails at once without clicking 200 times to send button?
Please help!!!
 

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