MailHelperService¶
MailHelperService
is used to create, render and send emails from eZ Commerce.
Interface and implementations¶
Interface definition | vendor/silversolutions/silver.tools/src/Siso/Bundle/ToolsBundle/Service/MailHelperServiceInterface.php |
Implementation class (using Swift-Mailer) | vendor/silversolutions/silver.tools/src/Siso/Bundle/ToolsBundle/Service/SwiftMailHelperService.php |
Using¶
Note
$subject
is translated in the helper service. Translating it in advance is unnecessary or, in rare cases, could even cause conflicts.
Note
The SwiftMailHelperService
uses Mail Logging to help administrators keep track of all the sent emails.
In the Customer center the content of any template parameter named password
is logged with a masked/removed value.
You can send predefined plain text and/or HTML content by using sendMail()
or sendMailWithRenderedTemplate()
.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 |
|