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

Outlook conditional tags are removed in mailer #3680

Open
ictbeheer opened this issue Mar 4, 2021 · 0 comments
Open

Outlook conditional tags are removed in mailer #3680

ictbeheer opened this issue Mar 4, 2021 · 0 comments

Comments

@ictbeheer
Copy link
Contributor

Problem

During processing of the mailer Outlook conditional tags (such as <!--[if mso]> are removed which messes up the layout.
This is caused by the following regex:

preg_match_all( "/\[if (.+?)?\](?:(.+?)?\[\/if\])?/", $mail['message'], $hasifs );

Solution

Make the regex more restrictive so Outlook conditional tags are not replaced.

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

1 participant