dotkernel/dot-mail

document how to send an email properly

Opened this issue · 1 comments

document
how to send an email properly

in order to use all parameters in the email

add in this example absolutely all available variables
public function sendMailExtended()
{
$this->mailService->setBody('Email body');
$this->mailService->addCC('config some value');
$this->mailService->addBCC('config another value');
$this->mailService->setSubject('Email subject');
$this->mailService->getMessage()->addTo('email@example.com', 'User name');
$this->mailService->getMessage()->setEncoding('utf-8');
return $this->mailService->send()->isValid();
}