Introducing Radical.sh

Forget Code launches a powerful code generator for building API's

Attach file to Email in C#

var filePath = HttpContext.Current.Server.MapPath(fileToSend);
if (File.Exists(filePath))
{
message.Attachments.Add(new Attachment(filePath));
}