• Resolved andrearago

    (@andrearago)


    Hi, I’m currently using FluentSMTP with a SMTP2Go connection to send emails, and I’ve noticed that line breaks are being removed from the messages sent with the header content-type: text/plain. The problem could be cause by the email body sanitize.

    I found this problem receiving fatal errors email by the built-in feature in WordPress.

    I’m not entirely sure if the issue is related to the SMTP2GO connection, but I thought it was worth flagging in case it’s relevant.

    Thank you

    • This topic was modified 6 months, 2 weeks ago by andrearago.
    • This topic was modified 6 months, 2 weeks ago by andrearago.
Viewing 6 replies - 1 through 6 (of 6 total)
  • Plugin Support Ibrahim Sharif

    (@ibrahimsharif)

    Hello @andrearago,

    To help me better understand and reproduce the issue on our end, could you please provide some screenshots showing the following:

    • The email content before it’s sent through FluentSMTP. This will help us see the intended formatting.
    • The email content after it’s been sent via FluentSMTP/SMTP2Go and received in your inbox. This will highlight the removed line breaks.
    • Your FluentSMTP settings. A screenshot of the “Settings” tab within FluentSMTP would be great.
    • The email headers, specifically the ‘Content-Type’ header. You can usually find this information by viewing the email source code in your email client.

    Having these screenshots will allow us to thoroughly investigate whether the issue lies with FluentSMTP’s sanitization process, potential interaction with SMTP2Go, or another factor. We’ll then work towards finding a solution or workaround for you.

    Looking forward to hearing back from you!

    Thread Starter andrearago

    (@andrearago)

    Hello @ibrahimsharif

    as requested i leave all the information below. I had to blur some sensitive information. They’re all email addresses or names.

    The email content before it’s sent through FluentSMTP

    I made this code snippet to replicate the problem.

    add_action('init', function(){

    $test_content = "This is the first line\n. This is the second line.";
    $subject = 'Test Email';
    $to = 'add address here';
    wp_mail( $to, $subject, $test_content );

    });

    The email content after it’s been sent via FluentSMTP/SMTP2Go and received in your inbox.

    The new line becomes a blank space.

    Your FluentSMTP settings.

    The email headers, specifically the ‘Content-Type’ header.

    It seems that it’s replacing the text/plain header with the text/html header.

    I am currently using SMTP2Go with other SMTP plugins for WordPress and they work fine.

    Thank you for you assistance.

    • This reply was modified 6 months, 1 week ago by andrearago.
    Thread Starter andrearago

    (@andrearago)

    Hi @ibrahimsharif ,

    any updates on this topic?

    Thank you

    I have the same issue, were you able to resolve it?

    Thread Starter andrearago

    (@andrearago)

    no, they haven’t fixed the problem yet

    We’ve just switched ~40 websites to use SMTP2GO via FluentSMTP and have the exact same issue. Those sites not using SMTP2GO yet are still formatted correctly.

    @ibrahimsharif no response for over 6 months?

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

You must be logged in to reply to this topic.