-
Notifications
You must be signed in to change notification settings - Fork 35
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
X-NCJF-Result: header confuses webmail due to incorrect termination #108
Comments
Hi @AurumVR, so if I understand this correctly, the 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 Take care! |
Hi! I haven't analysed the mail for protocol errors, MailEnable guys did as I run their server. Setup is: 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 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: [email protected]
The text was updated successfully, but these errors were encountered: