• Hello,

    I tested the e-mail notification for spam with the mail-tester.com service. When submitting a form I used the test email address they provide, so the auto responder is being send to them for analysis.

    The result is pretty good but there is one thing that could/should be improved:

    -0.635 HTML_MIME_NO_HTML_TAG
    HTML-only message, but there is no HTML tag
    Your message should contain a <html> tag.

    Is this something you can fixed?

    Thanks
    JP

Viewing 5 replies - 1 through 5 (of 5 total)
  • Plugin Support Williams – WPMU DEV Support

    (@wpmudev-support8)

    Hi @jpnl

    I hope you’re well today!

    I’ve tested it too and you are right – there’s a HTML content and necessary headers but there’s no HTML tag. Unfortunately, there’s currently no filter built-in into Forminator to modify this with some additional code so it will have to be addressed at plugin code level.

    I’ve already reported it to our developers as a bug so we could fix this with one of future versions.

    Fortunately, the lack of that tag doesn’t really affect much as most (if not all) modern e-mail clients (web or standalone) will correctly render HTML anyway and recognize the HTML message by the message content header, which is correct already.

    Kind regards,
    Adam

    Thread Starter John-Pierre Cornelissen

    (@jpnl)

    Thanks for reporting it as a bug.
    I have seen there is no rendering problem.
    It’s about the half spam point that’s easy to avoid ??

    Thanks
    JP

    Plugin Support Patrick – WPMU DEV Support

    (@wpmudevsupport12)

    Hi @jpnl

    I hope you are doing well.

    Since it is already reported to our developers I am marking this as resolved, we can’t give an estimated time to release the improved version but you can follow our roadmap on https://wpmudev.com/roadmap/#forminator

    Best Regards
    Patrick Freitas

    hello. I am a WPMUdev member and I am also complaining about this. Yes, the email will render in 99% of readers, but it increases the SPAM score just as John-Pierre was describing. On one site, an email wasn’t being delivered and this is what seemed to be pushing the score over the edge.

    Patrick, I checked the “roadmap” and there is no indication this is on the bug fix list and I’m currently using 1.15.2.

    Can you indicate specifically where this issue is within the roadmap?

    Plugin Support Patrick – WPMU DEV Support

    (@wpmudevsupport12)

    Hi @horizonm

    I am afraid we don’t have an estimated time to fix it but could you try this script?

    <?php
    
    add_filter('wp_mail', function($args) {
        $headers = join(' ', $args['headers'] );
        if( strpos( $headers, 'text/html' ) && false === strpos($args['message'], '<html')) {
        // $args['message'] = '<html><body>' . $args['message'] . '</body></html>';
        ob_start();?>
        <!DOCTYPE html>
        <html lang="en" xmlns="https://www.w3.org/1999/xhtml" xmlns:o="urn:schemas-microsoft-com:office:office">
        <head>
        <meta charset="UTF-8">
        <meta name="viewport" content="width=device-width,initial-scale=1">
        <meta name="x-apple-disable-message-reformatting">
        <title></title>
        <!--[if mso]>
        <noscript>
        <xml>
        <o:OfficeDocumentSettings>
        <o:PixelsPerInch>96</o:PixelsPerInch>
        </o:OfficeDocumentSettings>
        </xml>
        </noscript>
        <![endif]-->
        </head>
        <body style="margin:0;padding:0;min-width:100%;background-color:#ffffff;">
        <?php echo $args['message'];?>
        </body>
        </html>
        <?php
    
        $args['message'] = ob_get_clean();
        }
        return $args;
    },999);

    You can use it as a mu-plugin following this guide https://wpmudev.com/docs/using-wordpress/installing-wordpress-plugins/#installing-mu-plugins

    However, nowadays most providers like Gmail will strip out the additional HTML tag anyway.

    Best Regards
    Patrick Freitas

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘HTML-only message, but there is no HTML tag’ is closed to new replies.