user1811277
user1811277

Reputation: 53

How to send predefined email template in vb.net?

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

Answers (1)

boruchsiper
boruchsiper

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

Related Questions