C# Class PerplexMail.Attachment

This class is used to add attachments of any type to the e-mail.
ファイルを表示 Open project: PerplexInternetmarketing/PerplexMail-for-Umbraco

Public Methods

Method Description
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.

Method Details

Attachment() public method

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
return System

Attachment() public method

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.
return System

Attachment() public method

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.
return System