Yet Another GMAIL client
yagmail is a GMAIL/SMTP client that aims to make it as simple as possible to send emails.
Sending an Email is as simple:
import yagmail yag = yagmail.SMTP() contents = [ "This is the body, and here is just text http://somedomain/image.png", "You can find an audio file attached.", '/local/path/to/song.mp3' ] yag.send('email@example.com', 'subject', contents) # Alternatively, with a simple one-liner: yagmail.SMTP('mygmailusername').send('firstname.lastname@example.org', 'subject', contents)
Note that yagmail will read the password securely from your keyring, see the section on Username and Password in the repository’s README for further details. If you do not want this, you can initialize yagmail.SMTP like this:
yag = yagmail.SMTP('mygmailusername', 'mygmailpassword')
but honestly, do you want to have your password written in your script?
For further documentation and examples, please go to https://github.com/kootenpv/yagmail.
The full documentation is available at http://yagmail.readthedocs.io/en/latest/.
|File Name & Checksum SHA256 Checksum Help||Version||File Type||Upload Date|
|yagmail-0.10.209-py2.py3-none-any.whl (16.3 kB) Copy SHA256 Checksum SHA256||3.7||Wheel||Nov 11, 2017|
|yagmail-0.10.209.tar.gz (16.8 kB) Copy SHA256 Checksum SHA256||–||Source||Nov 11, 2017|