PHP Класс Pommo_Mailer, poMMo

Наследование: extends PHPMailer
Показать файл Открыть проект Примеры использования класса

Открытые свойства

Свойство Тип Описание
$_altbody
$_attachments
$_body
$_charset
$_demonstration counter for mails sent sucessfully.
$_exchanger
$_frombounce
$_fromemail
$_fromname
$_personalize
$_sentCount .. currently mail or sendmail are used TODO add smtp
$_subject
$_validated
$logger . this is used for bulk mailing

Открытые методы

Метод Описание
GetMessageSize ( ) returns the size (in bytes) of the last sent message
Pommo_Mailer ( $fromname = NULL, $fromemail = NULL, $frombounce = NULL, $exchanger = NULL, $demonstration = NULL, $charset = NULL, $personalize = FALSE ) If an argument is not supplied, resorts to default value (from setup/config.php).
bmSendmail ( &$to, $subscriber = FALSE ) * bmSendmail ** SEND MAIL FUNCTION --> pass an array of senders, or a single email address for single mode TODO rename function send in order to not confuse w/ PHPMailer's Send()?
prepareMail ( $subject = NULL, $body = NULL, $HTML = FALSE, $altbody = NULL, $attachments = NULL ) * prepareMail Sets up the mail message.
setRelay ( &$smtp ) sets the SMTP relay for this mailer
toggleDemoMode ( $val = NULL ) toggles demonstration mode on or off if sepcified, or else uses the configured mode. Returns value.
trackMessageSize ( $bool = TRUE ) enable to track size (in bytes) of sent messages.
validate ( ) Gets called before sending a mail to make sure all is proper (during prepareMail). Returns false if messages were created must pass global poMMo object (TODO maybe rename to site??)

Описание методов

GetMessageSize() публичный Метод

returns the size (in bytes) of the last sent message
public GetMessageSize ( )

Pommo_Mailer() публичный Метод

If an argument is not supplied, resorts to default value (from setup/config.php).
public Pommo_Mailer ( $fromname = NULL, $fromemail = NULL, $frombounce = NULL, $exchanger = NULL, $demonstration = NULL, $charset = NULL, $personalize = FALSE )

bmSendmail() публичный Метод

* bmSendmail ** SEND MAIL FUNCTION --> pass an array of senders, or a single email address for single mode TODO rename function send in order to not confuse w/ PHPMailer's Send()?
public bmSendmail ( &$to, $subscriber = FALSE )
$subscriber

prepareMail() публичный Метод

* prepareMail Sets up the mail message.
public prepareMail ( $subject = NULL, $body = NULL, $HTML = FALSE, $altbody = NULL, $attachments = NULL )
$subject
$body
$altbody
$attachments

setRelay() публичный Метод

sets the SMTP relay for this mailer
public setRelay ( &$smtp )

toggleDemoMode() публичный Метод

toggles demonstration mode on or off if sepcified, or else uses the configured mode. Returns value.
public toggleDemoMode ( $val = NULL )

trackMessageSize() публичный Метод

enable to track size (in bytes) of sent messages.
public trackMessageSize ( $bool = TRUE )

validate() публичный Метод

Gets called before sending a mail to make sure all is proper (during prepareMail). Returns false if messages were created must pass global poMMo object (TODO maybe rename to site??)
public validate ( )

Описание свойств

$_altbody публичное свойство

public $_altbody

$_attachments публичное свойство

public $_attachments

$_body публичное свойство

public $_body

$_charset публичное свойство

public $_charset

$_demonstration публичное свойство

counter for mails sent sucessfully.
public $_demonstration

$_exchanger публичное свойство

public $_exchanger

$_frombounce публичное свойство

public $_frombounce

$_fromemail публичное свойство

public $_fromemail

$_fromname публичное свойство

public $_fromname

$_personalize публичное свойство

public $_personalize

$_sentCount публичное свойство

.. currently mail or sendmail are used TODO add smtp
public $_sentCount

$_subject публичное свойство

public $_subject

$_validated публичное свойство

public $_validated

$logger публичное свойство

. this is used for bulk mailing
public $logger