You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
All emails sent out from Silvershop are missing plain text versions, or rather they are poorly formatted.
The styles and HTML inside the plain version of these e-mails are a red flag for spam filters.
Suggest we make plan text versions of all e-mails and set those like: $email->setPlainTemplate($html_template . 'Plain'); or revisit how we strip HTML and Styles from the HTML version into a plain version.
The solution we did for a project was making an extension for OrderEmailNotifier, for the hook "updateClientEmail"
class OrderEmailNotifierExtension extends DataExtension
{
public function updateClientEmail(Email $email)
{
$order = $email->getData()->Order;
$html_template = $email->getHTMLTemplate();
if($html_template == 'SilverShop/Model/Order_ReceiptEmail') {
$email->setPlainTemplate($html_template . 'Plain');
}
}
}
The text was updated successfully, but these errors were encountered:
All emails sent out from Silvershop are missing plain text versions, or rather they are poorly formatted.
The styles and HTML inside the plain version of these e-mails are a red flag for spam filters.
Suggest we make plan text versions of all e-mails and set those like:
$email->setPlainTemplate($html_template . 'Plain');
or revisit how we strip HTML and Styles from the HTML version into a plain version.The solution we did for a project was making an extension for OrderEmailNotifier, for the hook "updateClientEmail"
The text was updated successfully, but these errors were encountered: