Skip to content

Outlook conditional tags are removed in mailer #3680

@ictbeheer

Description

@ictbeheer

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions