PHP 클래스 CakeDC\Users\Email\EmailSender

상속: use trait Cake\Mailer\MailerAwareTrait
파일 보기 프로젝트 열기: cakedc/users

공개 메소드들

메소드 설명
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