C# Adding Email Attachments w/o Saving the File
By Jason, 14.11.08 @ 11:03 pm :: .NET : Announcements
Attaching files to emails in .NET is easy if you’ve physically saved the file on the server. What if you don’t want to save the file, though? It’s actually pretty simple as well, but you need to convert the data to be attached into a Stream.
The following code converts some plain old text [...]