monu_1983 wrote:
Is it possible?
Yup :)
monu_1983 wrote:
How can I do that?
- Check if you need to send an email
- Load the template into a string
- Replace the placeholders in the template with actual values (rename one of those .eml files to a .txt file and open it in notepad - it's a string you can manipulate)
- Send the emails (you can put multiple addresses in the bcc and set the "to" to yourself if you want to email a lot of people in one shot, just don't overdo it)
You might want to research a bit more, like;
- Where are my emailaddresses coming from? The things you put in the To and Fro, where is that stored?
- Where are the templates stored? How do the placeholders look?
- What are the conditions on which you trigger the sending? Is it a user-initiated action, or something more complex?
- Hunt the web for a code-snippet to send emails in your favorite .NET language. Or use the one from the manual[^]
monu_1983 wrote:
A code sample will be appreciated.
For which part of this project? You could Google for MailMerge-examples :)