Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

document how to send an email properly #46

Open
arhimede opened this issue Jul 31, 2023 · 1 comment
Open

document how to send an email properly #46

arhimede opened this issue Jul 31, 2023 · 1 comment
Assignees

Comments

@arhimede
Copy link
Member

document
how to send an email properly

in order to use all parameters in the email

@arhimede
Copy link
Member Author

arhimede commented Aug 1, 2023

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 protected]', 'User name');
$this->mailService->getMessage()->setEncoding('utf-8');
return $this->mailService->send()->isValid();
}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants