-
Notifications
You must be signed in to change notification settings - Fork 1.1k
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
Content Altered - Causing display issues #171
Comments
Could this be related to #106? Otherwise, are you able to explain how the content has been altered? |
I don't believe so but I am doing some further testing and comparing side by side one via postal and the same message not. Wanted to just see if anyone else had seen the same thing. |
Thanks. If you can identify exactly how it was changed, I'm sure we can track it down. |
It appears to be just the way that Gmail displays via the web view. If you view your Gmail mails via IMAP the content appears the same. However, the content type changes. Direct from server: Via postal: MIME-Version: 1.0 When I download the original message of that going via postal to that not, the content is the same but when I "view original" in Gmail's interface, the lines are wrapped and suspect it is the quoted-printable parsing the content as text instead of HTML. |
Further to that. It may be related to #106 but in a different way. We were sending a HTML only message without a text counterpart. When we sent with a text counterpart, the HTML part was shown correctly with a different content-type output.
|
We'll look into this. To work around it, you should be able to disable tracking and the message shouldn't be touched at all. |
HTML only email with tracking enabled has display issue. Anyone one working on it? |
If this issue is related to the content type of message parts, have a look at #376 |
I pulled changes and tested for email without text part. still same issue. |
I confirm the problem. It's still exists. Does anyone know how to fix it? |
If you're only sending a HTML version, that might be related. Does that happen when sending a text version as well as HTML? |
This looks specifically with the content-encoding of the HTML part, or perhaps the content-encoding of the message as a whole. |
Just on HTML emails and only those from a particular source. HTML emails passing through the same postal server with the same settings that originate from a discourse forum are not altered with tracking enabled. The messed up email shown above originates from a WooCommerce online store. The discourse forum emails have both plain text and html parts and are multipart / alternative encoded. The messed up WooCommerce email has no plain text part. |
@catphish can you tell me where to look in postal's source for whatever content-transfer-encoding mangling it does when it pushes a tracking pixel into a message? |
So the ones that are being messed up are those with only HTML content and no text part. If so, that's what we found and adding a text part was the only "workaround" currently. |
@iammattmartin thanks for that pointer. I installed a plugin on the WooCommerce site that just adds a plain text part to all outgoing emails and it's "fixed". i'm glad it's working now, but this is a total kludge. I looked at could it be as simple as the fact that in |
Is there a fix for this in the works? One of my sites is affected too. Thanks! |
The work around remains adding a text part. |
Thanks @iammattmartin. The issue is that we wanted to roll this out to several of our clients who all use WP sites. We would have to intercept all mail calls to add a text only part to the emails. And if something went wrong, then things would get messed up. I think a more reliable fix would be just making sure Postal can handle emails without the text part. Of have an option for Postal to generate it. @willpower232 any thoughts? |
@nhadsall it definitely would be better to have this fixed in Postal. In the mean time, this WP plugin which adds a plain text part to any WP emails that don't have one, is working across all the sites I manage which all send email through Postal: https://wordpress.org/plugins/lh-multipart-email/ |
Thanks @pjv. I found that one too. It worked on one site, but not another. We realized the issue was the plugin that was intercepting wp_mail() and sending with to the Postal server. I assume it was the priority used by the various hooks in each plugin. |
@nhadsall which plugin are they using to send mail to postal? I've standardized on this one: https://wordpress.org/plugins/wp-mail-smtp/ |
Since 2017, no idea why this was even closed back then, when was clearly not solved until today. |
We've seen that content via Postal appears to be altered in such a way that when Gmail receive it, the content is completely different.
I have sent the message from our mailer system directly to Gmail and the content is perfect but only that which goes via Postal gets completely altered.
Could anyone think of why this would happen?
The text was updated successfully, but these errors were encountered: