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 ?
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.