C# Class EnterpriseWebLibrary.Email.EmailAttachment

An email attachment.
Exibir arquivo Open project: enduracode/enterprise-web-library

Public Methods

Method Description
EmailAttachment ( Stream stream, string contentType, string attachmentDisplayName ) : System.IO

Creates an email attachment. The stream must contain the contents of the attachment, be readable and must not be closed. The attachmentDisplayName should be a file name with the proper extension. NOTE: It would be kind of nice if this could use FileInfoToBeSent. THen we could have ExcelFileWriter just know how to return one of those and it would cover sending the file to the browser and emailing it.

EmailAttachment ( string filePath ) : System.IO

Creates an email attachment.

Private Methods

Method Description
ToAttachment ( ) : System.Net.Mail.Attachment

Converts this to a System.Net.Mail.Attachment.

Method Details

EmailAttachment() public method

Creates an email attachment. The stream must contain the contents of the attachment, be readable and must not be closed. The attachmentDisplayName should be a file name with the proper extension. NOTE: It would be kind of nice if this could use FileInfoToBeSent. THen we could have ExcelFileWriter just know how to return one of those and it would cover sending the file to the browser and emailing it.
public EmailAttachment ( Stream stream, string contentType, string attachmentDisplayName ) : System.IO
stream System.IO.Stream
contentType string
attachmentDisplayName string
return System.IO

EmailAttachment() public method

Creates an email attachment.
public EmailAttachment ( string filePath ) : System.IO
filePath string
return System.IO