\Mail\ServiceMail

Class Mail

Summary

Methods
Properties
Constants
__construct()
getServiceLocator()
getObjectManager()
getTemplate()
signUpMail()
forgotPassword()
prepareMessage()
prepareBody()
send()
assign()
No public properties found
No constants found
No protected methods found
$serviceManager
N/A
No private methods found
No private properties found
N/A

Properties

$serviceManager

$serviceManager : null|\Zend\ServiceManager\ServiceManager

Type

null|\Zend\ServiceManager\ServiceManager

Methods

__construct()

__construct(\Zend\ServiceManager\ServiceManager  $sm) 

Parameters

\Zend\ServiceManager\ServiceManager $sm

getServiceLocator()

getServiceLocator() : null|\Zend\ServiceManager\ServiceManager

Returns

null|\Zend\ServiceManager\ServiceManager

getObjectManager()

getObjectManager() : \Doctrine\ORM\EntityManager

Returns

\Doctrine\ORM\EntityManager

getTemplate()

getTemplate(  $alias) : mixed

Parameters

$alias

Throws

\Doctrine\ORM\EntityNotFoundException

Returns

mixed

signUpMail()

signUpMail(\User\Entity\User  $user) 

Parameters

\User\Entity\User $user

Throws

\Doctrine\ORM\EntityNotFoundException

forgotPassword()

forgotPassword(\User\Entity\User  $user) 

Send forgot password email

Parameters

\User\Entity\User $user

prepareMessage()

prepareMessage(\Mail\Entity\Mail  $template, \User\Entity\User  $user) : \Zend\Mail\Message

Parameters

\Mail\Entity\Mail $template
\User\Entity\User $user

$user

Returns

\Zend\Mail\Message

prepareBody()

prepareBody(\Mail\Entity\Mail  $template) : \Zend\Mime\Message

Parameters

\Mail\Entity\Mail $template

$template

Returns

\Zend\Mime\Message

send()

send(  $message) : mixed

Parameters

$message

Returns

mixed

assign()

assign(\Mail\Entity\Mail  $template,   $name,   $value) : mixed

Parameters

\Mail\Entity\Mail $template

$template

$name
$value

Returns

mixed