Version
Version = '5.1'
Версия
Отправитель
$Sender : \Colibri\IO\Mail\Address
Отправитель (эл. адрес)
$DKIM : \Colibri\IO\Mail\DKIM
Данные DKIM
$certificate : \Colibri\IO\Mail\Certificate
Сертификат
$callback : string
Callback Action function name the function that handles the result of the send email action. Parameters: bool $result result of the send action string $to email address of the recipient string $cc cc email addresses string $bcc bcc email addresses string $subject the subject string $body the email body
$smtp : \Colibri\IO\Mail\SMTP
SMTP
Create(string $mailer, string $domain = '') : \Colibri\IO\Mail\Sender
Статический конструктор
| string | $mailer | MailerTypes::* |
| string | $domain | домен |
Send(\Colibri\IO\Mail\Message $m) : boolean
Creates message and assigns Mailer. If the message is not sent successfully then it returns false. Use the ErrorInfo variable to view description of the error.
| \Colibri\IO\Mail\Message | $m |
SendmailSend(\Colibri\IO\Mail\Message $m, string $header, string $body) : boolean
Отправить письмо через Sendmail
| \Colibri\IO\Mail\Message | $m | |
| string | $header | |
| string | $body |
MailSend(\Colibri\IO\Mail\Message $m, string $header, string $body) : boolean
Отпавить письмо через функцию mail
| \Colibri\IO\Mail\Message | $m | |
| string | $header | |
| string | $body |
SmtpSend(\Colibri\IO\Mail\Message $m, string $header, string $body) : boolean
Отправить письмо через сторонний SMTP
| \Colibri\IO\Mail\Message | $m | |
| string | $header | |
| string | $body |
AttachAll(\Colibri\IO\Mail\Message $m) : string
Attaches all fs, string, and binary attachments to the message.
Returns an empty string on failure.
| \Colibri\IO\Mail\Message | $m |
doCallback(boolean $isSent, \Colibri\IO\Mail\AddressList $to, \Colibri\IO\Mail\AddressList $cc, \Colibri\IO\Mail\AddressList $bcc, string $subject, string $body) : void
Выполняет колбэк функцию
| boolean | $isSent | |
| \Colibri\IO\Mail\AddressList | $to | |
| \Colibri\IO\Mail\AddressList | $cc | |
| \Colibri\IO\Mail\AddressList | $bcc | |
| string | $subject | |
| string | $body |
_setWordWrap(\Colibri\IO\Mail\Message $m) : void
Set the body wrapping.
| \Colibri\IO\Mail\Message | $m |
_createHeader(\Colibri\IO\Mail\Message $m) : string
Assembles message header.
| \Colibri\IO\Mail\Message | $m |
The assembled header
_getMailMIME(\Colibri\IO\Mail\Message $m) : string
Returns the message MIME.
| \Colibri\IO\Mail\Message | $m |
_createBody(\Colibri\IO\Mail\Message $m) : string
Assembles the message body. Returns an empty string on failure.
| \Colibri\IO\Mail\Message | $m |
The assembled message body