Skip to content
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

using yagmail.smtp(), pyCharm asks for 'keyrings.alt' #38

Closed
DanielTimLee opened this issue Apr 26, 2016 · 6 comments
Closed

using yagmail.smtp(), pyCharm asks for 'keyrings.alt' #38

DanielTimLee opened this issue Apr 26, 2016 · 6 comments

Comments

@DanielTimLee
Copy link

Before reporting some issues, I'd like to thanks so much for making this module!
I was using Flask-mail, and there was some trouble with using it.
(it's last updated date was about 2 years ago , so i moved on to Yagmail!)

I was having some troubles with yagmail connections, so i changed my code like this. (left -> right)
(for some reason, it sometimes prints "[Error] Please run Connect() first" - maybe connection timed out?)
image
image

by changing this (one-liner) there were no more errors, but my pyCharm keeps prints "package requirement message." (though it works well!)

image

my question is
1.Why the Connect error occurs?
2.Why there is package requirement message?

@DanielTimLee DanielTimLee changed the title without using yag=yagmail.smtp() pyCharm keeps asks for keyrings.alt package using yagmail.smtp(), pyCharm asks for 'keyrings.alt' Apr 26, 2016
@kootenpv
Copy link
Owner

Hi, thanks! Did you try registering only once though? For the registration you indeed need to have keyring installed. Do you use windows?

@DanielTimLee
Copy link
Author

No, i use mac 10.10 yosemite.

Eventhough i don't have keyring installed, it works fine!!
And i wonder why it is...?

@kootenpv
Copy link
Owner

Maybe pycharm is using a different version there? I suppose the keyring package has been installed anyway on Mac.

@DanielTimLee
Copy link
Author

DanielTimLee commented Apr 26, 2016

Oh. I have Keyring package!! (sorry for the mistake.)

For last question, Is there any connection timeout limit?
If there is, how long is it?

@kootenpv
Copy link
Owner

You can give a timeout which will be passed to SMTP on creating yagmail.SMTP(timeout=10) if that's what you mean?

@DanielTimLee
Copy link
Author

DanielTimLee commented Apr 26, 2016

Not actually... but thanks for the kind answer!!

I was wandering if there is any default value for the timeout. ^^
But I guess I found it!

The optional timeout parameter specifies a timeout in seconds for blocking operations like the connection attempt (if not specified, the global default timeout setting will be used). If the timeout expires, socket.timeout is raised.

https://docs.python.org/2/library/smtplib.html

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants