common/components/Mailer.php
public function sendCreateUserMail( $user ) {

		$siteName	= $this->coreProperties->getSiteName();
		$fromEmail	= $this->mailProperties->getSenderEmail();
		$fromName	= $this->mailProperties->getSenderName();

		// Send Mail
		$this->getMailer()->compose( self::MAIL_ACCOUNT_CREATE, [ 'coreProperties' => $this->coreProperties, 'user' => $user ] )
			->setTo( $user->email )
			->setFrom( [ $fromEmail => "$fromName | $siteName" ] )
			->setSubject( "Registration | " . $this->coreProperties->getSiteName() )
			//->setTextBody( "heroor" )
			->send();
	}
public function sendCreateUserMail( $user ) {

		$siteName	= $this->coreProperties->getSiteName();
		$fromEmail	= $this->mailProperties->getSenderEmail();
		$fromName	= $this->mailProperties->getSenderName();

		// Send Mail
		$this->getMailer()->compose( self::MAIL_ACCOUNT_CREATE, [ 'coreProperties' => $this->coreProperties, 'user' => $user ] )
			->setTo( $user->email )
			->setFrom( [ $fromEmail => "$fromName | $siteName" ] )
			->setSubject( "Registration | " . $this->coreProperties->getSiteName() )
			//->setTextBody( "heroor" )
			->send();
	}
public function sendCreateUserMail ( $ user ) { $ siteName = $ this -> coreProperties -> getSiteName ( ) ; $ fromEmail = $ this -> mailProperties -> getSenderEmail ( ) ; $ fromName = $ this -> mailProperties -> getSenderName ( ) ; // Send Mail $ this -> getMailer ( ) -> compose ( self :: MAIL_ACCOUNT_CREATE , [ 'coreProperties' => $ this -> coreProperties , 'user' => $ user ] ) -> setTo ( $ user -> email ) -> setFrom ( [ $ fromEmail => "$fromName | $siteName" ] ) -> setSubject ( "Registration | " . $ this -> coreProperties -> getSiteName ( ) ) //->setTextBody( "heroor" ) -> send ( ) ; }
The method sends mail for accounts created by site admin.
The method sends mail for accounts created by site admin .