Conversation
…r ProtonMail support
|
Thank you! Could you provide an example in which it does not work, and for which it will now work? I'd love to support it, but it is hard for me to verify at the moment that it will improve the situation. |
|
From the linked issue, The old header looked like: and the new header: A sample call might look like: with yagmail.SMTP("developers@neon.ai", password, "smtp.gmail.com", '465') as yag:
yag.send(to="djmcknight358@protonmail.com", subject="Test Attachments, contents="See attached files.",
attachments=["/tmp/test_attach.log"]) |
|
@kootenpv Anything else I can contribute here to help get this merged? |
|
Hello, You may also refer to https://blog.nodemailer.com/2017/01/27/the-mess-that-is-attachment-filenames/ who claim you can also set Content-Type... name as a fallback value for legacy MUAs. EDIT: Sorry, RFC 6266 is standard for HTTP. The relevant one for MTA is still RFC 2231 AFAICT. See CVE-2024-39929 for an example on how the header could be abused to send attachments with malicious names. |
|
In a few days this pull request will be 1yo. Happy birthday! (in advance) |
Refactor attachment MIME object to match other (working) providers per ProtonMail support
Closes #228
I validated this change by sending an email to my gmail address (daniel@neongecko.com) and to a newly-created ProtonMail account. Both emails contained attachments as ecpected. A sample new header is included below.