I have blobs in Windows Azure blob storage that I\'d like to attach to emails sent with SendGrid. I\'d like to specify the file name for the attachment (real file names are
This has probably already been solved, but you need to make sure that you 'rewind' the stream back to the beginning using Seek. Sample code below.
stream.Seek(0, SeekOrigin.Begin); sendGrid.AddAttachment(stream, "name");