Closed miohtama closed 3 years ago
@miohtama the tests are broken, it looks like you're depending on py3 changes to the email module
Sparkpost apparently failed to follow Postel's law:
an implementation should be conservative in its sending behavior, and liberal in its receiving behavior
- Jon Postel (RFC 760)
Was later reworded to the one more people will be familiar with:
Be liberal in what you accept, and conservative in what you send
- Reworded Jon Postel (RFC 1122)
It is an issue we should fix, but I wonder if it should be fixed in the Python standard library if that is where the error ultimately lies.
Ok seriously this should be fixed. We found out that if you use outlook365 SMTP as the outbound mailer, it will break on quopri bodies in an evil fashion if you use only \n
instead of \r\n
!
Related https://stackoverflow.com/questions/54292462/pyramid-mailer-message-and-content-transfer-encoding - all seem to be connected to the same issue.
Otherwise sparkpost.com rejects outbound emails from us