A command line e-mail helper
#Usage Save email id and password in a configuration file. Henceforth, password for email id will be extracted from file itself. Don't worry about password readibility in configuration file, it's encoded.
$: caesar -sc [email protected]
Enter password:
Save server settings, IP and port number to send mail using the mailing client. The first value given eg: 'ymail' in following sample will be used henceforth for referring the server's settings.
$: caesar -ss ymail smtp.mail.yahoo.com 587
To further use this server settings for mailing,
$: caesar -c ymail
This will allow sending mail using a yahoo email id
With caesar sending a single line mail is as easy as blinking an eye.
$: caesar -m 'Your message here'
Enter recipients address: [email protected]
Give a subject: Subject here
Enter login details
Email: [email protected]
Mail sent
Add all files to be attached in one go!
$: caesar -f file1.txt file2.py
Enter recipients address: [email protected]
Give a subject: Attaching files
Enter login details
Email: [email protected]
Mail sent
Type your message in editor along with attachments
$: caesar -f IMG.jpg -e -m 'hey'
Enter recipients address: [email protected]
###Message opens up in vim here###
Give a subject: hi
Enter login details
Email: [email protected]
Mail sent
This is not it, you can mix and match options according to your need. Send message along with attachments or open an editor for typing message.
$: caesar -m 'Your message here' -f file1 file2
OR
$: caesar -m 'Your message here' -f file1 file2 -e
Enjoy e-mailing!!!