Reputation: 53
I am now developing one web application in vb.net. In that application I have one requirement. i.e. I have to send predefined email template to registered users. In that template I have to add some text messages like greeting messages or welcome messages. How to send predefined email templates in vb.net?
Upvotes: 2
Views: 1044
Reputation: 2028
You can store the email html in sql or in a text file. make sure to leave placeholders for variables like
<span id="user">{user}</span>
and then replace "{user}" with the database value in a loop.
Upvotes: 1