Hi again,
So, until recently, I've been sending emails for my client by just throwing HTML into the body of the email. They now want the HTML page to be sent as an attachment. I'm wondering how I can take the HTML code that I have (currently stored in a string) and attach it to the file.
Here's what I'd like it to do:
(If only it were that easy...)
Hope I've explained it well,
Thanks.
-------------------------
Call me barely Impressive Captain.
So, until recently, I've been sending emails for my client by just throwing HTML into the body of the email. They now want the HTML page to be sent as an attachment. I'm wondering how I can take the HTML code that I have (currently stored in a string) and attach it to the file.
Here's what I'd like it to do:
Code:
string strHTML = BuildHTML();
email.Attachments.Add(new SmptAttachment(strHTML as HtmlFile);
(If only it were that easy...)
Hope I've explained it well,
Thanks.
-------------------------
Call me barely Impressive Captain.