Hi,
sorry if this has already been posted, but I was not able to find anything similar. I have an Access query which contains a list of recipients. It looks like this:
CODE EMAIL
000001 xxxxxxxxx@mail.com
000002 yyyyyyyyy@mail.com
...
Then I have all pdf files i need to send in a folder. The pdf files are named after the code I need to send them to.
So for example, I need to send an email to xxxxxxxxx@mail.com (which is code 000001) with attached file named 000001.pdf, an email to yyyyyyyyy@mail.com (code 000002) with attached file 000002.pdf, and so on.
How can I accomplish that with VBA?
Many thanks in advance
sorry if this has already been posted, but I was not able to find anything similar. I have an Access query which contains a list of recipients. It looks like this:
CODE EMAIL
000001 xxxxxxxxx@mail.com
000002 yyyyyyyyy@mail.com
...
Then I have all pdf files i need to send in a folder. The pdf files are named after the code I need to send them to.
So for example, I need to send an email to xxxxxxxxx@mail.com (which is code 000001) with attached file named 000001.pdf, an email to yyyyyyyyy@mail.com (code 000002) with attached file 000002.pdf, and so on.
How can I accomplish that with VBA?
Many thanks in advance