is it possible to have a file (template.msg) holding an email template in html, load this template and in a merge replace some tags (to field, subject and paragraphs)?
It is possible to read a .msg file having attachments and one of the attachment is an email template in HTML format. Please visit the link for details:
I’m sorry. I think I didn’t express myself clearly in my previous post.
I’d like to do something like this.
Design a email template and insert tags (i.e. #to-email#, #subject#, etc. to be replaced during a merge.
In code I would then:
- load users to send an email to.
- for each user:
– load the email template into a new mail message
– replace #to-email# with user’s email
– send the merged mail message
I hope you understand.
Thanks in advance
Thank you for details. Yes, it is possible to perform mail merge with Aspose.Email. Please visit the link Performing Mail Merge for details. This article explains each step involved in the process along with sample code snippet. Please try the solution at your end and update us with your feedback.