email Class Reference
Email helper class.
More...
Static Public Member Functions |
static | connect ($config=NULL) |
| Creates a SwiftMailer instance.
|
static | send ($to, $from, $subject, $body, $html=FALSE) |
| Send an email message.
|
static | send_report ($to, $from, $subject, $content, $mime, $filename, $data) |
| Send out a report.
|
Static Protected Attributes |
static | $mail |
| SwiftMailer instance.
|
Detailed Description
Email helper class.
- Author:
- Kohana Team copyright (c) 2007-2008 Kohana Team license http://kohanaphp.com/license.html
Member Function Documentation
static email::connect |
( |
$ |
config = NULL |
) |
[static] |
Creates a SwiftMailer instance.
- Parameters:
-
| $config | DSN connection string |
- Returns:
- Swift object
static email::send |
( |
$ |
to, |
|
|
$ |
from, |
|
|
$ |
subject, |
|
|
$ |
body, |
|
|
$ |
html = FALSE | |
|
) |
| | [static] |
Send an email message.
- Parameters:
-
| $to | recipient email (and name), or an array of To, Cc, Bcc names |
| $from | sender email (and name) |
| $subject | message subject |
| $body | message body |
| $html | send email as HTML |
- Returns:
- number of emails sent
The documentation for this class was generated from the following file: