hi all - i have a web page that lets users send out emails and the content(body) of the email is pulled from a text file. Users change the text file as needed and send emails. This is working fine; however, i need to give the users option to specify the
subject of the email. i can ask users to put the subject under the last line or something but i don't know how to grab it and assigned it to the subject of the email and how to exclude it from the body of the email. I have the code i am using to send emails.
any ideas on how to do this? thanks in advance.
string templatePath = Server.MapPath("EmailTemplates/EmailFile.txt");
StreamReader sr = File.OpenText(templatePath);
mm = new MailMessage();
mm.IsBodyHtml = true;
mm.From = new MailAd ...
Go to the complete details ...