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
always prompts for keyring password on Ubuntu #16
Comments
I'll test this on a Ubuntu VM and let you know. Thanks for filing! |
Using Python 3.4 and Ubuntu 14.10, I can not reproduce. What could be the thing is that perhaps you are not consistent with what you've saved? A username (e.g. kootenpv) would be stored differently as an emailaddress (e.g. kootenpv@gmail.com). Both can be used to login (if missing @..., it will add @gmail.com). However, if you've saved it in one style, it does not work for the other. Could that be the case? Let me know if there is anything else that you could think that has to do with it. |
i too have this issue!
|
|
Let me know if you'd like me to add a "do you want to save a .yagmail file?" after the question whether or not to save in keyring. |
No need for it. Make sure the username of gmail is in |
You can actually test by using "yagmail" command on the command line to see if it worked (if it works, no prompt, and it should send an email to yourself without subject and without contents) |
it turns out that the username of PC and gmail are the same! |
So did it work in the end? |
Hello, |
@GeorgHo Perhaps it could work to just put the password in the script in that occasion then? |
Hi kootenpv, |
@GeorgHo Great to hear, good luck! |
@GeorgHo even i did the same to make it work, but it defeats the purpose of securing your username and password. anyone who can view your script can see your username => you can't share your script! |
@murtraja I'm thinking OAuth2 is the only way to solve running the script in an automated way without having to use keyring or password in script, and without compromising security. What do you think? |
The only reason I am using yagmail is because it DOES NOT use Oauth2.
|
I do have the same issue on Debian (Raspberry Pi). when running python3 test_mail.py it asks me the keyring pwd and then succesfully send the email. I tried adding or removing my login in the yagmail.SMTP() call but it does not change anything. Any1 found a way to solve this ? Tyvm all. |
Oauth2 support has been added as of 22cb687 This should be the way forward. |
After registering the user and email, it prompts everytime for the encrypted keyring password.
yag = yagmail.SMTP()
Please enter password for encrypted keyring:
Works fine on Mac Os
The text was updated successfully, but these errors were encountered: