smsohan / MvcMailer

A Mailer for ASP.Net MVC that forms the Email Body using MVC Views (Razor etc.) following Ruby on Rails ActionMailer style
MIT License
584 stars 178 forks source link

Save HTML to be view in Browser #38

Closed khalidabuhakmeh closed 6 years ago

khalidabuhakmeh commented 12 years ago

I love MvcMailer, but was wondering what the best way to save the rendered email down to a database is. I'd like to essentially cache what was generated so that if a user wants to view the email in a web browser they could do so. Are there any hooks in MvcMailer to do that?

Thanks,

Khalid

smsohan commented 12 years ago

You have a mail message object and you should be able to save the body/subject in a database.

Sent from my iPad

On 2012-01-30, at 7:37 AM, Khalid Abuhakmeh reply@reply.github.com wrote:

I love MvcMailer, but was wondering what the best way to save the rendered email down to a database is. I'd like to essentially cache what was generated so that if a user wants to view the email in a web browser they could do so. Are there any hooks in MvcMailer to do that?

Thanks,

Khalid


Reply to this email directly or view it on GitHub: https://github.com/smsohan/MvcMailer/issues/38