0

I am creating an application which will send an User Id and Auto Generated Password to the user via email. I have the User Id and Password generated with me and the Email template as well. I want to append these data in to a HTML template file.

string emailData = "Hi " + UserName + " Please use this " + Password + "as your password to login in to the Application.";

I want to add this string to a span tag of the HTML template.

  • Sounds like your question is really how do I programmatically send a HTML email, is that right? In which case, there are plenty of answers already here – Nathan Nov 09 '20 at 22:48
  • This is my exact question.How do I append a html string inside a HTML template programmatically? – Debasis Mund Nov 10 '20 at 11:58
  • Does this answer your question? [Send HTML email via C# with SmtpClient](https://stackoverflow.com/questions/1329922/send-html-email-via-c-sharp-with-smtpclient) – Nathan Nov 10 '20 at 21:14

0 Answers0