C# Класс EnterpriseWebLibrary.Email.EmailAttachment

An email attachment.
Показать файл Открыть проект

Открытые методы

Метод Описание
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.

Приватные методы

Метод Описание
ToAttachment ( ) : System.Net.Mail.Attachment

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

Описание методов

EmailAttachment() публичный Метод

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
Результат System.IO

EmailAttachment() публичный Метод

Creates an email attachment.
public EmailAttachment ( string filePath ) : System.IO
filePath string
Результат System.IO