FreenetIS
 All Classes Namespaces Functions Variables Pages
Static Public Member Functions | Static Protected Attributes | List of all members
email Class Reference

Static Public Member Functions

static connect ($config=NULL)
 Creates a SwiftMailer instance.
static send ($to, $from, $subject, $message, $html=FALSE)
 Send an email message.

Static Protected Attributes

static $mail

Member Function Documentation

static email::connect (   $config = NULL)
static

Creates a SwiftMailer instance.

Parameters
stringDSN connection string
Returns
object Swift object
Todo:
Add config settings to email with sendmail
static email::send (   $to,
  $from,
  $subject,
  $message,
  $html = FALSE 
)
static

Send an email message.

Parameters
string|arrayrecipient email (and name)
string|arraysender email (and name)
stringmessage subject
stringmessage body
booleansend email as HTML
Returns
integer number of emails sent

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