A POP3/IMAP/SMTP client.
Project description
Postcard
POP3/IMAP/SMTP client and more!
Thanks for use.
How to use
POP3
For decorator
from postcard import Pop3
pop = Pop3()
@pop.process(user="xxx", pwd="xxx")
def get_content():
content = pop.retrieve()["content"]
print(content)
For usual
from postcard import Pop3
pop = Pop3()
pop.login(user="xxx", pwd="xxx")
...
pop.close()
SMTP
from postcard import Smtp
smtp = Smtp()
@smtp.process(user="xxx", pwd="xxx")
def send():
ret = smtp.send_mail(subject="xx", content="xx", receiver="xx")
print(ret)
IMAP
from postcard import Imap
imap = Imap()
@imap.process(user="xxx", pwd="xxx")
def get_content():
content = imap.retrieve()["content"] # If you want to mark as read, please set readonly to False.
print(content)
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
postcard-0.3.2.tar.gz
(6.8 kB
view details)
Built Distribution
File details
Details for the file postcard-0.3.2.tar.gz
.
File metadata
- Download URL: postcard-0.3.2.tar.gz
- Upload date:
- Size: 6.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/1.12.1 pkginfo/1.0.2rc1 requests/2.24.0 setuptools/46.1.3 requests-toolbelt/0.9.1 tqdm/4.32.1 CPython/3.6.6
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 17309158bf54345a2ac2b9beb6bc7212d2060127d00801906ccb9ee9476c4244 |
|
MD5 | 1947ab96bc2aa53fb3ed9e445a95d946 |
|
BLAKE2b-256 | 6beb635d7e1fd8046c356dd31c5bd5320eb59029fd8d3c59b0fbc9d90e4c838e |
File details
Details for the file postcard-0.3.2-py3-none-any.whl
.
File metadata
- Download URL: postcard-0.3.2-py3-none-any.whl
- Upload date:
- Size: 8.5 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/1.12.1 pkginfo/1.0.2rc1 requests/2.24.0 setuptools/46.1.3 requests-toolbelt/0.9.1 tqdm/4.32.1 CPython/3.6.6
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 037d339f5b7cd461a9abf11dd566c5a28d14b5de18d69d5e80b5180f01545edc |
|
MD5 | 7c25e9964349db0d9d6597f916e53293 |
|
BLAKE2b-256 | 9ed27a5f31e53e96ef01bb9adce1c0d088aeff9e783e2155997cc5110036cfc9 |