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

Linked resource and MemoryStream #36

Open dragouf opened 12 years ago

dragouf commented 12 years ago

Your function generating the attachement is taking the path to the file as a parameter. However, I am trying to include an image in the email that is saved in MemoryStream and not as a file.

Instead of only taking the path as linked resource, I created a patch to enable the function to use the MemoryStream too.

I think this is useful addition to your code, maybe you could include it in the next release ?

Here it is on stackoverflow :

http://stackoverflow.com/questions/8789425/using-mvcmailer-to-embed-image-from-memorystream-in-email

Let me know what you think.

jmorvan commented 9 years ago

up? has this been done?

sheam commented 9 years ago

This would be nice, especially with the advent of cloud storage. I would often like to attach files for AWS or Azure.