kootenpv / yagmail

Send email in Python conveniently for gmail using yagmail
MIT License
2.66k stars 265 forks source link

yagmail support reading emails ? #50

Open b3mb4m opened 8 years ago

kootenpv commented 8 years ago

It does not support reading. First request so far.

b3mb4m commented 8 years ago

"The goal here is to make it as simple and painless as possible to send and read emails."

can be great :)

kootenpv commented 8 years ago

@b3mb4m I have considered it, but unfortunately reading emails is a different beast :-) I will consider it after more demand; it took over a year for someone to suggest it....

Maybe eventually though. It has been in the back of my mind since it would allow monitoring one's inbox and add triggers on them. Or to do some complex queries on the inbox and export the results to html or something. sqlite3 could be used as backend for caching.

Let me be the first one to +1 your suggestion :-)

b3mb4m commented 8 years ago

If i get enough time i can patch it with poplib(gmail support it if i remember right).Yagmail just serve gmail users right ?

kootenpv commented 8 years ago

I aimed at gmail, but there's actually nothing gmail specific about it , just that I've only tested things on gmail (thus yagmail is now a misnomer). I do not know about poplib, I just know I would look at imaplib probably.

b3mb4m commented 8 years ago

host='smtp.gmail.com', port='587',smtp_starttls=True

(Some services not even support tls)That's why i ask it but anyway will try look soon ! :)

kootenpv commented 8 years ago

That's why they're arguments: you can change them. I know people had succes with outlook and some other setups.

dimashi commented 7 years ago

I would use functionality of receiving emails. Maybe the long-term goal should be to have email client with API instead of UI :)

Prakash1Gupta commented 7 years ago

I started new with python.I have checked some syntax,but yagmail.Connect("username","password") does not work for me even, yagmail.SMTP("username",password") shows error for me,say the host has failed to reply.Do I need to create an SMTP server in my local machine to use that.or how do I proceed.Please do help.