Twoorb Plugins  1.0
 All Classes Namespaces Functions Variables Enumerations Enumerator Properties
Twoorb.Utilities.Mailer Class Reference

Utility class that helps sending mail through a php-interface. More...

Inheritance diagram for Twoorb.Utilities.Mailer:

Public Member Functions

void Initialize (string url)
 Initializes the Mailer instance. Takes a url-string to the php-class handling the mail operations. More...
 
void SendEmail (string from, string to, string subject, string body, string filename, string fileData, string mimeType="application/octet-stream")
 Sends an email with the settings in the parameters More...
 
void SendEmail (string from, string to, string subject, string body, string filename, byte[] fileData, string mimeType="application/octet-stream")
 Sends an email with the settings in the parameters More...
 

Properties

bool Initialized [get]
 Gets whether or not the Initialize()-method was called. More...
 

Detailed Description

Utility class that helps sending mail through a php-interface.

Member Function Documentation

void Twoorb.Utilities.Mailer.Initialize ( string  url)

Initializes the Mailer instance. Takes a url-string to the php-class handling the mail operations.

Parameters
urlThe url-string to the php-class handling the mail operations.
void Twoorb.Utilities.Mailer.SendEmail ( string  from,
string  to,
string  subject,
string  body,
string  filename,
string  fileData,
string  mimeType = "application/octet-stream" 
)

Sends an email with the settings in the parameters

Parameters
fromWho to send from
toWho to send to
subjectThe subject of the email.
bodyThe message body of the email.
filenameThe filename of any attachment
fileDataThe data of any attachment
mimeTypeThe data type of the attachment
void Twoorb.Utilities.Mailer.SendEmail ( string  from,
string  to,
string  subject,
string  body,
string  filename,
byte[]  fileData,
string  mimeType = "application/octet-stream" 
)

Sends an email with the settings in the parameters

Parameters
fromWho to send from
toWho to send to
subjectThe subject of the email.
bodyThe message body of the email.
filenameThe filename of any attachment
fileDataThe data of any attachment
mimeTypeThe data type of the attachment

Property Documentation

bool Twoorb.Utilities.Mailer.Initialized
get

Gets whether or not the Initialize()-method was called.


The documentation for this class was generated from the following file: