M
Mat
Could anyone help with a simple answer please ?
I have an Access db that schedules the sending of emails
with attachments.
I run a query on the table that returns all active users
I then need to create a separate text file for each
active user - in the format as shown below.
Each file is called "ddmmXX.epe"
- where dd=day,mm=month,XX=sequential number starting 01.
The file needs to be formatted ascii text file.
The file extension must be .epe
FORMAT:text
TO:{email}
FROM:{from}
CC:{cc}
SUBJECT:{subject}
ATTACHMENT:{attachment}
BODY:{Message}
All the fields within the {} are fields in the Access
table
Each file must then be saved to a directory c:\mail\out
(eg C:\mail\out\141201.epe)
Sample file would look like this:
FORMAT:text
TO:{[email protected]}
FROM:{[email protected]}
CC:{[email protected]}
SUBJECT:{Daily Newsletter}
ATTACHMENT:{c:\mail\news.zip}
BODY:{Please find attached today's newsletter}
Can anyone help - it would be much appreciated, as I am
still learning the slightly more advanced methods of VBA.
Thanks
I have an Access db that schedules the sending of emails
with attachments.
I run a query on the table that returns all active users
I then need to create a separate text file for each
active user - in the format as shown below.
Each file is called "ddmmXX.epe"
- where dd=day,mm=month,XX=sequential number starting 01.
The file needs to be formatted ascii text file.
The file extension must be .epe
FORMAT:text
TO:{email}
FROM:{from}
CC:{cc}
SUBJECT:{subject}
ATTACHMENT:{attachment}
BODY:{Message}
All the fields within the {} are fields in the Access
table
Each file must then be saved to a directory c:\mail\out
(eg C:\mail\out\141201.epe)
Sample file would look like this:
FORMAT:text
TO:{[email protected]}
FROM:{[email protected]}
CC:{[email protected]}
SUBJECT:{Daily Newsletter}
ATTACHMENT:{c:\mail\news.zip}
BODY:{Please find attached today's newsletter}
Can anyone help - it would be much appreciated, as I am
still learning the slightly more advanced methods of VBA.
Thanks