|
| | __construct () |
| |
| | useGmailAccount ($account_name, $account_passwd) |
| |
| | useSMTP ($auth=NULL, $host=NULL, $user=NULL, $pass=NULL, $secure=NULL, $port=25) |
| |
| | setAdditionalParams ($additional_params) |
| |
| | addAttachment ($filename, $orgfilename) |
| |
| | addCidAttachment ($filename, $cid) |
| |
| | setSender ($name, $email) |
| |
| | getSender () |
| |
| | setReceiptor ($name, $email) |
| |
| | getReceiptor () |
| |
| | setTitle ($title) |
| |
| | getTitle () |
| |
| | setBCC ($bcc) |
| |
| | setMessageID ($messageId) |
| |
| | setReferences ($references) |
| |
| | setReplyTo ($replyTo) |
| |
| | setContent ($content) |
| |
| | replaceResourceRealPath ($matches) |
| |
| | getPlainContent () |
| |
| | getHTMLContent () |
| |
| | setContentType ($mode= 'html') |
| |
| | procAttachments () |
| |
| | procCidAttachments () |
| |
| | send () |
| |
| | checkMailMX ($email_address) |
| |
| | isVaildMailAddress ($email_address) |
| |
| | returnMIMEType ($filename) |
| |
| Mail::addAttachment |
( |
|
$filename, |
|
|
|
$orgfilename |
|
) |
| |
Add file attachment
- Parameters
-
| string | $filename | File name to attach |
| string | $orgfilename | Real path of file to attach |
- Returns
- void
Definition at line 219 of file Mail.class.php.
| Mail::addCidAttachment |
( |
|
$filename, |
|
|
|
$cid |
|
) |
| |
Add content attachment
- Parameters
-
| string | $filename | Real path of file to attach |
| string | $cid | Content-CID |
- Returns
- void
Definition at line 231 of file Mail.class.php.
| Mail::checkMailMX |
( |
|
$email_address | ) |
|
Check if DNS of param is real or fake
- Parameters
-
| string | $email_address | Email address |
- Returns
- boolean TRUE if param is valid DNS otherwise FALSE
Definition at line 595 of file Mail.class.php.
Get the HTML content of body message
- Returns
- string
Definition at line 436 of file Mail.class.php.
| Mail::getPlainContent |
( |
| ) |
|
Get the Plain content of body message
- Returns
- string
Definition at line 426 of file Mail.class.php.
| Mail::isVaildMailAddress |
( |
|
$email_address | ) |
|
Check if param is a valid email or not
- Parameters
-
| string | $email_address | Email address |
- Returns
- string email address if param is valid email address otherwise blank string
Definition at line 622 of file Mail.class.php.
| Mail::procAttachments |
( |
| ) |
|
Process the images from attachments
- Returns
- void
Definition at line 457 of file Mail.class.php.
| Mail::procCidAttachments |
( |
| ) |
|
Process the images from body content. This functions is used if Mailer is set as mail not as SMTP
- Returns
- void
Definition at line 507 of file Mail.class.php.
| Mail::replaceResourceRealPath |
( |
|
$matches | ) |
|
| Mail::returnMIMEType |
( |
|
$filename | ) |
|
Gets the MIME type of param
- Parameters
-
- Returns
- string MIME type of ext
Definition at line 640 of file Mail.class.php.
Send email
- Returns
- bool TRUE in case of success, FALSE if sending fails
Definition at line 544 of file Mail.class.php.
| Mail::setAdditionalParams |
( |
|
$additional_params | ) |
|
Set additional parameters
- Parameters
-
| string | $additional_params | Additional parameters |
- Returns
- void
Definition at line 207 of file Mail.class.php.
| Mail::setContent |
( |
|
$content | ) |
|
Set message content
- Parameters
-
- Returns
- void
Definition at line 396 of file Mail.class.php.
| Mail::setContentType |
( |
|
$mode = 'html' | ) |
|
Set the type of body's content
- Parameters
-
- Returns
- void
Definition at line 447 of file Mail.class.php.
| Mail::setMessageID |
( |
|
$messageId | ) |
|
| Mail::setReceiptor |
( |
|
$name, |
|
|
|
$email |
|
) |
| |
Set Receiptor (TO:)
- Parameters
-
| string | $name | Receiptor name |
| string | $email | Receiptor email address |
- Returns
- void
Definition at line 277 of file Mail.class.php.
| Mail::setReferences |
( |
|
$references | ) |
|
| Mail::setReplyTo |
( |
|
$replyTo | ) |
|
Set ReplyTo param
- Parameters
-
- Returns
- void
Definition at line 378 of file Mail.class.php.
| Mail::setSender |
( |
|
$name, |
|
|
|
$email |
|
) |
| |
Set Sender (From:)
- Parameters
-
| string | $name | Sender name |
| string | $email | Sender email address |
- Returns
- void
Definition at line 243 of file Mail.class.php.
Set Email's Title
- Parameters
-
- Returns
- void
Definition at line 310 of file Mail.class.php.
| Mail::useGmailAccount |
( |
|
$account_name, |
|
|
|
$account_passwd |
|
) |
| |
Set parameters for using Gmail
- Parameters
-
| string | $account_name | Password |
| string | $account_passwd | Secure method ('ssl','tls') |
- Returns
- void
Definition at line 145 of file Mail.class.php.
| Mail::useSMTP |
( |
|
$auth = NULL, |
|
|
|
$host = NULL, |
|
|
|
$user = NULL, |
|
|
|
$pass = NULL, |
|
|
|
$secure = NULL, |
|
|
|
$port = 25 |
|
) |
| |
Set parameters for using SMTP protocol
- Parameters
-
| bool | $auth | SMTP authentication |
| string | $host | SMTP host address |
| string | $user | SMTP user id |
| string | $pass | STMP user password |
| string | $secure | method ('ssl','tls') |
| int | $port | STMP port |
- Returns
- bool TRUE if SMTP is set correct, otherwise return FALSE
Definition at line 175 of file Mail.class.php.
| Mail::$additional_params = NULL |
| Mail::$attachments = array() |
| Mail::$cidAttachments = array() |
| Mail::$content_type = 'html' |
| Mail::$mainMailPart = NULL |
| Mail::$receiptor_email = '' |
| Mail::$receiptor_name = '' |
The documentation for this class was generated from the following file: