andrewdavey / postal

Email sending for asp.net mvc using the view engine system to render emails.
http://aboutcode.net/postal
MIT License
536 stars 168 forks source link

Reading from html attachment to use in email #91

Open ChesterChiew opened 10 years ago

ChesterChiew commented 10 years ago

Hi Andrew,

May i know if it is possible for me to attach an html file and to use it in my email using Postal?

I've tried several methods but failed:

  1. Reading the html file in "Example.Html.cshtml"
  2. Reading the html file and writing using Console.WriteLine in "example.Html.cshtml"

My last hope/guess is probably to convert the html file into a string and load it in "Example.Html.cshtml". Is that the only way possible?

Thank you.

Best Regards,

Chester