I'm looking for a way to send an email with a single attachment from Access (I'm using Access 2007, but it should be used in Access 2003).
On the attached screenshot, I have this controls: cmdTO, txtTO, cmdCC, txtCC, txtSubject, txtText, cmdSend and cmdCancel.
If the user clicks either the cmdTO or cmdCC button, a small form opens, where each recepients email address can be entered, one per line. When clicking ok in that form, the addresses should be saved in a table and the email addresses should be transferred to txtTO, seperated with a "; ". The user should fill out txtSubject and txtText boxes.
When clicking the cmdSend button, then the email should be send directly to the stated email addresses, with a a report (rptReport) attached. The report should be printed to a pdf file (I have adobe acrobat installed on the work pc supposed to run this) before being attached and send. If possible, I would like the Report which is being printed and send, to be called a specific name + 'todays' date.
I would like to code a fixed senders email address, as the email should be send directly from Access.
I have looked at, searched and read a lot of different posts at various places on the web, however I'm quite confused how to get this started and done. I hope someone can assist me in getting this started, and guided the right way.
I should mention that we use Novell Groupwise as mail system on board, however I assume it doesn't matter, since the emails should be send directly from Access, making it unimportant which mail system is being used.
/Anders
On the attached screenshot, I have this controls: cmdTO, txtTO, cmdCC, txtCC, txtSubject, txtText, cmdSend and cmdCancel.
If the user clicks either the cmdTO or cmdCC button, a small form opens, where each recepients email address can be entered, one per line. When clicking ok in that form, the addresses should be saved in a table and the email addresses should be transferred to txtTO, seperated with a "; ". The user should fill out txtSubject and txtText boxes.
When clicking the cmdSend button, then the email should be send directly to the stated email addresses, with a a report (rptReport) attached. The report should be printed to a pdf file (I have adobe acrobat installed on the work pc supposed to run this) before being attached and send. If possible, I would like the Report which is being printed and send, to be called a specific name + 'todays' date.
I would like to code a fixed senders email address, as the email should be send directly from Access.
I have looked at, searched and read a lot of different posts at various places on the web, however I'm quite confused how to get this started and done. I hope someone can assist me in getting this started, and guided the right way.
I should mention that we use Novell Groupwise as mail system on board, however I assume it doesn't matter, since the emails should be send directly from Access, making it unimportant which mail system is being used.
/Anders