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 [...]

Read the rest