CakeDC\Users\Email\EmailSender::sendSocialValidationEmail PHP Method

sendSocialValidationEmail() public method

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
return mixed
    public function sendSocialValidationEmail(EntityInterface $socialAccount, EntityInterface $user, Email $email = null)
    {
        if (empty($email)) {
            $template = 'CakeDC/Users.social_account_validation';
        } else {
            $template = $email->template()['template'];
        }
        $this->getMailer('CakeDC/Users.Users', $this->_getEmailInstance($email))->send('socialAccountValidation', [$user, $socialAccount, $template]);
    }