C# 클래스 PerplexMail.Attachment

This class is used to add attachments of any type to the e-mail.
파일 보기 프로젝트 열기: PerplexInternetmarketing/PerplexMail-for-Umbraco

공개 메소드들

메소드 설명
Attachment ( Stream filestream, string filename ) : System

Create an attachment from an input filestream. The name for the file also needs to be provided

Attachment ( int umbracoMediaId ) : System

Create an attachment file from an Umbraco Media node containing a file.

Attachment ( string filePath ) : System

Create an attachment from an existing file on the physical harddrive.

메소드 상세

Attachment() 공개 메소드

Create an attachment from an input filestream. The name for the file also needs to be provided
public Attachment ( Stream filestream, string filename ) : System
filestream Stream The stream containing the file to attach.
filename string The name of the file, including the file extension and excluding any folder/path, as it will appear in the attachment of the e-mail
리턴 System

Attachment() 공개 메소드

Create an attachment file from an Umbraco Media node containing a file.
public Attachment ( int umbracoMediaId ) : System
umbracoMediaId int The Umbraco Media Node Id containing the file to attach.
리턴 System

Attachment() 공개 메소드

Create an attachment from an existing file on the physical harddrive.
public Attachment ( string filePath ) : System
filePath string The relative or absolute physical path to the file to be attached.
리턴 System