how to add an attachement to an email from the fileupload without saving the document
to the server.
This way
if (FileUpload1.HasFile) { string FileName = System.IO.Path.GetFileName(FileUpload1.PostedFile.FileName) ; mm.Attachments.Add(new Attachment(FileUpload1.PostedFile.InputStream, FileName)); }
© COPYRIGHT 2024 ASPSnippets.com ALL RIGHTS RESERVED.