PHP Класс Mailer

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

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

Свойство Тип Описание
$divert array Addresses to which we should divert emails to. If empty then no diversion.
$host Configuration for SMTP.
$mode string Can be mail, smtp, sendmail. If empty then mail is disabled and messages are dropped silently.
$password
$port
$security SSL or TLS.
$sendmail_command
$username

Защищенные свойства (Protected)

Свойство Тип Описание
$_mailer
$_transport

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

Метод Описание
init ( ) Initialise the component by pulling in the appropriate SwiftMailer classes.
mail ( array $to, string $subject, string $body, array $from ) : boolean Mailer:mail is intended as a more robust simple replacement for php mail(),.
newMessage ( ) : Swift_Message Instantiate an appropriate SwiftMailer email message object.
sendMessage ( Swift_Message $message ) : boolean Send an email.

Защищенные методы

Метод Описание
censorMessage ( Swift_Message $message ) : Swift_Message If we deem a mail address to be insecure, we should censor the message, otherwise returns intact.
directlySendMessage ( Swift_Message $message ) : boolean Sends a message to the recipient, censors if they are forbidden.
divertMessage ( Swift_Message $message ) : boolean Diverts an email from its original destination. Useful for testing things in nearlive.
getMailer ( ) : Swift_Mailer Get the SwiftMailer object with the configured transport.
getTransport ( ) : Transport return the transport object for the configured mail type.
recipientForbidden ( Swift_Message $message ) : boolean Checks the email recipients are in domains that are allowed.

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

censorMessage() защищенный Метод

If we deem a mail address to be insecure, we should censor the message, otherwise returns intact.
protected censorMessage ( Swift_Message $message ) : Swift_Message
$message Swift_Message
Результат Swift_Message

directlySendMessage() защищенный Метод

Sends a message to the recipient, censors if they are forbidden.
protected directlySendMessage ( Swift_Message $message ) : boolean
$message Swift_Message
Результат boolean

divertMessage() защищенный Метод

Diverts an email from its original destination. Useful for testing things in nearlive.
protected divertMessage ( Swift_Message $message ) : boolean
$message Swift_Message
Результат boolean

getMailer() защищенный Метод

Get the SwiftMailer object with the configured transport.
protected getMailer ( ) : Swift_Mailer
Результат Swift_Mailer

getTransport() защищенный Метод

return the transport object for the configured mail type.
protected getTransport ( ) : Transport
Результат Transport object

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

Initialise the component by pulling in the appropriate SwiftMailer classes.
public init ( )

mail() публичный статический Метод

Mailer:mail is intended as a more robust simple replacement for php mail(),.
public static mail ( array $to, string $subject, string $body, array $from ) : boolean
$to array address eg array('[email protected]'=>'OpenEyes')
$subject string
$body string
$from array address eg array('[email protected]'=>'OpenEyes')
Результат boolean mail sent without error

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

Instantiate an appropriate SwiftMailer email message object.
public newMessage ( ) : Swift_Message
Результат Swift_Message

recipientForbidden() защищенный Метод

Checks the email recipients are in domains that are allowed.
protected recipientForbidden ( Swift_Message $message ) : boolean
$message Swift_Message
Результат boolean

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

Send an email.
public sendMessage ( Swift_Message $message ) : boolean
$message Swift_Message
Результат boolean

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

$_mailer защищенное свойство

protected $_mailer

$_transport защищенное свойство

protected $_transport

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

Addresses to which we should divert emails to. If empty then no diversion.
public array $divert
Результат array

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

Configuration for SMTP.
public $host

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

Can be mail, smtp, sendmail. If empty then mail is disabled and messages are dropped silently.
public string $mode
Результат string

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

public $password

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

public $port

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

SSL or TLS.
public $security

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

public $sendmail_command

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

public $username