Open AurumVR opened 2 years ago
Hi @AurumVR,
so if I understand this correctly, the X-NCJF-Result
header has the 0D0D0A
string in it and this breaks your webmail client and does not display the email properly?
Our plugin does not add any special header line ending code to the emails that are sent, we are using the WP Core PHPMailer in some of our mailers or direct API implementation with the mailer providers.
Which mailer are you using in our plugin settings?
Which plugin adds this X-NCJF-Result
header to the email?
Take care!
Hi!
I haven't analysed the mail for protocol errors, MailEnable guys did as I run their server.
Setup is: WP-Mail sends through a smart host, which also serves as another mail account for me. To double check sent a mail from there to the account affected, that arrived fine, readable no problem.
WP notified me about a login attempt (that I performed) through the same smart host to the same email, that arrived with the X-NCJF header in the mail, actual content at the bottom.
Regarding which plugin adds this X-NCJF-Result header to the email... I have no idea. If not yours, then.. I'll have to contact my web dev for ideas.
Attached the source of a mail affected, before opened by webmail:
Hi @AurumVR,
I just tested by adding a custom header (with 165 char long value) to an email that was sent with our plugin. I used our Sendinblue and Other SMTP mailers to send two test emails... Which mailer are you using (in our plugin settings)?
The value of this custom header was not broken down into several 78 char long rows, like your example. The value was kept as a single string without linebreaks...
I think you should contact the support of the plugin that is adding this custom header X-NCJF-Result
to the email and ask them if they add those line breaks manually...
Let me know what they'll say.
Take care!
Hi!
I'm using "Other SMTP".
I've taken a look into the test email I sent through the smart host WP-Mail uses and there are the X-NCJF headers in it but it doesn't cause a problem in webmail like when it comes from WP.
I've attached its source here, perhaps you notice a difference I can't:
My email server received a mail sent by WP-Mail SMTP and while Thunderbird displays it properly it confuses my webmail to display the long X-NCJF-Result header as part of the email, with the actual content at the bottom.
After analyzing the issue with my servers maker they came to the following conclusion: "the reason is that the lines for that header are terminated by 0D0D0A (carriage return, carriage return, linefeed) instead of carriage return, linefeed. So webmail is seeing this as two lines."
Relevant part of the header:
X-Mailer: WPMailSMTP/Mailer/smtp 3.2.0 MIME-Version: 1.0 Content-Type: text/html; charset=utf-8 X-Virus-Scanned: ClamAV using ClamSMTP X-NCJF-Result: VYyUq+rDJF2I/ZmOHmn7Xnxn1A4fbuKO03TTGjHf3dgUFmIek19gQrN9HlDR/z2
[ ... ]
X-NCJF-Version: 13 Return-Path: support@aaaaa.x