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
-
string | DSN 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|array | recipient email (and name) |
string|array | sender email (and name) |
string | message subject |
string | message body |
boolean | send email as HTML |
- Returns
- integer number of emails sent
The documentation for this class was generated from the following file: