settings/Mailer/NewUserMailHelper.php
/**
	 * Sends a welcome mail to $user
	 *
	 * @param IUser $user
	 * @param IEmailTemplate $emailTemplate
	 * @throws \Exception If mail could not be sent
	 */
Sends a welcome mail to $user
@param IUser $user
@param IEmailTemplate $emailTemplate
@throws \Exception If mail could not be sent
Sends a welcome mail to $user @param IUser $user @param IEmailTemplate $emailTemplate @throws \ Exception If mail could not be sent
public function sendMail(IUser $user,
							 IEMailTemplate $emailTemplate) {
		$message = $this->mailer->createMessage();
		$message->setTo([$user->getEMailAddress() => $user->getDisplayName()]);
		$message->setSubject($this->l10n->t('Your %s account was created', [$this->themingDefaults->getName()]));
		$message->setHtmlBody($emailTemplate->renderHtml());
		$message->setPlainBody($emailTemplate->renderText());
		$message->setFrom([$this->fromAddress => $this->themingDefaults->getName()]);
		$this->mailer->send($message);
	}
public function sendMail ( IUser $ user , IEMailTemplate $ emailTemplate ) { $ message = $ this -> mailer -> createMessage ( ) ; $ message -> setTo ( [ $ user -> getEMailAddress ( ) => $ user -> getDisplayName ( ) ] ) ; $ message -> setSubject ( $ this -> l10n -> t ( 'Your %s account was created' , [ $ this -> themingDefaults -> getName ( ) ] ) ) ; $ message -> setHtmlBody ( $ emailTemplate -> renderHtml ( ) ) ; $ message -> setPlainBody ( $ emailTemplate -> renderText ( ) ) ; $ message -> setFrom ( [ $ this -> fromAddress => $ this -> themingDefaults -> getName ( ) ] ) ; $ this -> mailer -> send ( $ message ) ; }
Sends a welcome mail to $user
 @param IUser $user
 @param IEmailTemplate $emailTemplate
 @throws \Exception If mail could not be sent
Sends a welcome mail to $user @param IUser $user @param IEmailTemplate $emailTemplate @throws \ Exception If mail could not be sent