Skip to content

Latest commit

 

History

History
43 lines (29 loc) · 1.4 KB

Readme.md

File metadata and controls

43 lines (29 loc) · 1.4 KB

PYMAIL

Send email from command line

Install

$ git clone https://github.com/amyth07/pymail.git
$ pip3 install -r requirements.txt
$ python3 setup.py install

Usage

$ pymail --from senderemail@yahoo.com --passwd SenderEmailPassword --to receiveremail@outlook.com --subject "My subject" --message "My message" --attach myattachmentfile

Examples

$ pymail --from senderemail@yahoo.com --passwd SenderEmailPassword --to receiveremail@outlook.com --subject "My subject" --message "My message"
Sending email without attachments

$ pymail --from senderemail@yahoo.com --passwd SenderEmailPassword --to receiveremail@outlook.com
Sending a naked email

$ pymail --from senderemail@yahoo.com --passwd SenderEmailPassword --to receiveremail@outlook.com --subject "My subject" --message "My message" --attach mya\
ttachmentfile
Sending email with message, subject & attachments

Note

For gmail Users

If you are using gmail for sending the email then there is 1 extra step. You will first has reduce the security of the gmail Account. To reduce the security of your gmail account go to the link: https://myaccount.google.com/lesssecureapps The lessSecureAppUse Feature should be "ON".

Contributing

Do you want to make this better? Open an issue and/or a PR on Github. Thanks!