PHP Класс CakeDC\Users\Email\EmailSender

Наследование: use trait Cake\Mailer\MailerAwareTrait
Показать файл Открыть проект

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

Метод Описание
sendResetPasswordEmail ( Cake\Datasource\EntityInterface $user, Cake\Mailer\Email $email = null, string $template = 'CakeDC/Users.reset_password' ) : array Send the reset password email
sendSocialValidationEmail ( Cake\Datasource\EntityInterface $socialAccount, Cake\Datasource\EntityInterface $user, Cake\Mailer\Email $email = null ) : mixed Send social validation email to the user
sendValidationEmail ( Cake\Datasource\EntityInterface $user, Cake\Mailer\Email $email = null ) : void Send validation email

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

Метод Описание
_getEmailInstance ( Cake\Mailer\Email $email = null ) : Cake\Mailer\Email Get or initialize the email instance. Used for mocking.

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

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

Get or initialize the email instance. Used for mocking.
protected _getEmailInstance ( Cake\Mailer\Email $email = null ) : Cake\Mailer\Email
$email Cake\Mailer\Email if email provided, we'll use the instance instead of creating a new one
Результат Cake\Mailer\Email

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

Send the reset password email
public sendResetPasswordEmail ( Cake\Datasource\EntityInterface $user, Cake\Mailer\Email $email = null, string $template = 'CakeDC/Users.reset_password' ) : array
$user Cake\Datasource\EntityInterface User entity
$email Cake\Mailer\Email instance, if null the default email configuration with the
$template string email template Users.validation template will be used, so set a ->template() if you pass an Email instance
Результат array email send result

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

Send social validation email to the user
public sendSocialValidationEmail ( Cake\Datasource\EntityInterface $socialAccount, Cake\Datasource\EntityInterface $user, Cake\Mailer\Email $email = null ) : mixed
$socialAccount Cake\Datasource\EntityInterface social account
$user Cake\Datasource\EntityInterface user
$email Cake\Mailer\Email Email instance or null to use 'default' configuration
Результат mixed

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

Send validation email
public sendValidationEmail ( Cake\Datasource\EntityInterface $user, Cake\Mailer\Email $email = null ) : void
$user Cake\Datasource\EntityInterface User entity
$email Cake\Mailer\Email instance, if null the default email configuration with the
Результат void