Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

nautiyaldeepak/emailpy

Folders and files

NameName
Last commit message
Last commit date

Latest commit

History

33 Commits

Repository files navigation

emailpy

Send email from command line

Install

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

Usage

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

Examples

$ emailpy --from senderemail@outlook.com --passwd SenderEmailPassword --to receiveremail@gmail.com --subject "My subject" --message "My message"
Sending email without attachments
$ emailpy --from senderemail@outlook.com --passwd SenderEmailPassword --to receiveremail@gmail.com
Sending a naked email
$ emailpy --from senderemail@outlook.com --passwd SenderEmailPassword --to receiveremail@gmail.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 otp 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!

License

MIT License

Copyright (c) 2018 Deepak Nautiyal

Releases

No releases published

Packages

No packages published

Languages

AltStyle によって変換されたページ (->オリジナル) /