You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
It turns out that this line message.addHeader("Powered by", "Bookmemate"); caused that problem.
Because all emails were successfully sent I never received an error on my end and hence, nobody, apart from the end users that received the garbage, saw any issues.
This is unacceptable. If you change the API that drastically, please inform the users that pay for this service or at least raise an error so that it can be fixed.
The other thing is, why is this API not backwards compatible? Meaning, the old code and the new code should work in parallel.
Best regards,
Thomas
Director of Bookmemate
The text was updated successfully, but these errors were encountered:
A field name MUST be composed of printable US-ASCII characters (i.e., characters that have values between 33 and 126, inclusive), except colon.
so mail clients assume it isn't a header and treat it as the start of the mail body. Hence what you're seeing. Try something like
message.addHeader("X-Powered-By", "Bookmemate");
instead.
The only thing I can guess that might have changed in the library would be if custom headers used to go at the end of the default headers, so mail clients already thought they were processing headers not body and you got away with the space. But as I said even the very old version I'm using puts custom headers first, so I'm not sure that's it.
PS: I will close this ticket but it would be great if you can update the docs and let others know, although it's been known that, for instance HTTP header don't allow spaces either.
Hi all,
A few months ago I changed the API to
TLS
and with that I refactored the code to use the version 1.5.6.Everything was working fine with the (simplified) code below:
For a month (or even longer) all emails lost their formatting and all my clients received something like that
It turns out that this line
message.addHeader("Powered by", "Bookmemate");
caused that problem.Because all emails were successfully sent I never received an error on my end and hence, nobody, apart from the end users that received the garbage, saw any issues.
This is unacceptable. If you change the API that drastically, please inform the users that pay for this service or at least raise an error so that it can be fixed.
The other thing is, why is this API not backwards compatible? Meaning, the old code and the new code should work in parallel.
Best regards,
Thomas
Director of Bookmemate
The text was updated successfully, but these errors were encountered: