-
Notifications
You must be signed in to change notification settings - Fork 265
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
Sending attachment fails #228
Comments
After some more troubleshooting I found the problem was with protonmail. |
cool, thanks for finding that out if someone wants to dig into this we could maybe find a way that supports both gmail and protonmail |
Interestingly there's some other stuff I found. I've also got automatic forwarding set up from my gmail to protonmail. The issue seems to be specifically when sending an email from python using yagmail to protonmail. |
I'm using this package to send diagnostic emails to users. A user got the following response from Proton Mail support and shared it with me (Neon AI refers to the email sent with yagmail):
ProtonMail support noted that Gmail handles these headers properly but that they are in an "incorrect format", so it appears they do not plan on handling it on their end. |
@NeonDaniel thanks for posting, though from your post it's not clear to me what should be fixed still. If you make a pull request with the correct format, I can push a new version. |
I am also not entirely sure what changes are necessary to make the headers match what ProtonMail expects. I will try to find time to dig in though. Glad you're still maintaining this package 🙂 |
Thanks for making yagmail.
I'm running yagmail-0.15.277 on python 3.10.
I can't seem to attach a file to my email.
The email arrives just fine but without attachment.
In the code, shown below, I'm sending it to my protonmail account, also when I try to send to a gmail it also fails.
here's the code:
The output is as follows:
When opening the path (C:\Users\RegularUsername\Documents\Scripts\email\test.txt) it shows the txt file.
The text was updated successfully, but these errors were encountered: