• Resolved jabuadmin

    (@jabuadmin)


    The notification emails that I receive display as a continuous line of text after updating to 5.7.3, all line breaks between mail-tags are missing.
    The message body now displays like this:
    From: [Name] <[EmailAddress]>Email: [EmailAddress]Phone:[PhoneNumber]Company: [CompanyName]How did you find us: [Other]Message: [your-message]

    All line breaks I manually put in are ignored in the notification, I also have “Use HTML content type” checked.

Viewing 15 replies - 16 through 30 (of 35 total)
  • I hadn’t seen this post before mentioning what appears to be the same issue in the Email Lines Not Wrapping post. My one contribution to this discussion is that the formatting for Mail 2 is working correctly.

    Plugin Author Takayuki Miyoshi

    (@takayukister)

    I don’t know if you really need to use the HTML content type for this simple email template, but if you want to use HTML anyway, try removing <[EmailAddress]> from the Message body field. HTML parser confuses it with an HTML tag.

    don’t expect this to be fixed quickly.

    replace the file I mentioned in a previous post

    Yes, that seems to have worked. Thanks.

    @takayukister that would explain why the default email template that contains the line:

    From: [your-name] <[your-email]>

    Fails to pass on the email address.

    Kind of important. Might want to rethink that.

    Same problem here. Form has been working for years. Uses paragraph marks only, and html mail is checked. Message all squashed together. I understand the fix is to replace the html-formatter, but could not figure out how to get the old one out of GitHub.

    If someone wants to try instead of waiting for a fix, it’s here: https://github.com/takayukister/contact-form-7/blob/3a552fef26e2003204c4f3ad0934a6fe4541ba61/includes/html-formatter.php

    Click raw to download.

    Alternatively you might download an older version of the plug-in from the bottom of this page and replace that file: https://www.ads-software.com/plugins/contact-form-7/advanced/

    There might be risks involved in using old versions of software.

    You can also download the full zip of older releases from here:

    https://github.com/takayukister/contact-form-7/releases/tag/v5.7.2

    Thread Starter jabuadmin

    (@jabuadmin)

    I removed the < > and that fixed the problem and the notification email is displaying correctly.

    • This reply was modified 1 year, 9 months ago by jabuadmin.

    Do you mean something like this:

    From: [Name] [EmailAddress]
    Email: [EmailAddress]
    Phone:[PhoneNumber]
    Company: [CompanyName]
    How did you find us: [Other]
    Message: [your-message]

    Instead of like this?:

    From: [Name] <[EmailAddress]>
    Email: [EmailAddress]
    Phone:[PhoneNumber]
    Company: [CompanyName]
    How did you find us: [Other]
    Message: [your-message]

    If you need a quick fix while the plugin author corrects this issue, you could roll back to the previous version of CF7 with WP Rollback. This is only a temporary solution though.

    Or try removing the <> around the email address in the body field as suggested by the author. This is a very long job for me though as I manage over a hundred websites with more than one form each. So ideally I need a fix which doesn’t require me to go through and update every single contact form in every website.

    Hi @takayukister,

    could you please let us know if this issue being worked on or, alternatively, is the workaround related to changing form templates the only solution available?

    No problem either way, but I’d like to know what’s the best course of action.

    Hi. I see that this issue is marked as Resolved but I don’t see how it is, given that the provided solution is to remove something that is misinterpreted as an HTML tag from an HTML formatted email?

    As per @takayukister above, I think the easiest fix for now is deselecting ‘Use HTML content type’ under the ‘Mail’ tab – since it is only an email submission to you, plain text is usually adequate to receive those contact details (if the issue were with ‘Mail (2)’ submissions back to your client, then that would be more of an issue).

    I did originally use the suggestion by @jameskoussertari (download WP Rollback, rolled back to version 5.71) and it worked fine to restore old functionality of the contact form notifications, but I’m not a fan of using outdated plugins as they have often caused security issues on sites I manage in the past and it’s always been my preference to find other workarounds where possible.

Viewing 15 replies - 16 through 30 (of 35 total)
  • The topic ‘Notification email not styled correctly after update to 5.7.3’ is closed to new replies.