• Resolved Ambyomoron

    (@josiah-s-carberry)


    I note that I have Send HTML mails set to Yes.
    When the ‘Mail sending method’ is set to WP Mail, some of the html code is stripped out (notably the <p>, </p> and <br /> tags). The mail gets sent without the benefit of those tags. When the Mail sending method is set to SMTP, the mail is sent with proper formatting.

    Is this just a coincidence? I note, too, that the html tags mentioned above are not saved in the mail templates.

    PS: In the default value for the template of Respondent email format, the placeholders #_FIRSTNAME and #_LASTNAME don’t. You might consider changing the defaults to #_RESPFIRSTNAME and #_RESPLASTNAME

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author Franky

    (@liedekef)

    Wordpress messes a bit too much with the formatting … wp_mail might strip those out (or not … but I don’t use it anymore, too unreliable).
    wp_mail is also filtered by the filter called wp_mail, see:
    https://codex.ww.wp.xz.cn/Plugin_API/Filter_Reference/wp_mail
    so maybe that one is interfering with your br-tags …

    I’ll change #_FIRSTNAME and #_LASTNAME for the default respondent email format (for future installations)

    Plugin Author Franky

    (@liedekef)

    Just checked, the defaults for respondent email format are fine in the code. See this php extract:

       $respondent_email_subject_localizable = __("Reservation for '#_EVENTNAME' confirmed",'events-made-easy');
       $respondent_email_body_localizable = __("Dear #_RESPNAME,<br/><br/>You have successfully reserved #_RESPSPACES space(s) for #_EVENTNAME.<br/><br/>Yours faithfully,<br/>#_CONTACTPERSON",'events-made-easy');

    Of course I can’t change the settings you already have there …

Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘html code stripped from html mail’ is closed to new replies.