smail-0.4.0 is not a library.
S-Mail Cli
Send emails with attachments and body content from the command line using your gmail account More accounts support coming soon
Usage
Instructions on how to get your Gmail app password
Run the following command to get instructions on how to get your Gmail app password
Store your credentials
Send an email with a subject and file attachment
Send an email with a body
Send an email with both body and attachment
List all credentials
# list all credentials ie
{
# Hashed password
}
Commands
)
Configuration Storage
- JSON Configuration: Your email credentials are stored securely in a
smail.jsonfile in your home directory. - Cross-platform: Works on Windows, Linux, and macOS without any external dependencies.
- Location:
- Windows:
C:\Users\username\smail.json - Linux:
/home/username/smail.json - macOS:
/Users/username/smail.json
- Windows:
Notes:
- Security: The email and provider are stored in plain text, while the password is encrypted before being saved.
- Portability: The configuration file can be easily backed up or transferred between systems.
TODO
- Add support for more email providers
- Add support for sending emails with multiple attachments
- Add support for sending emails with body text
- Add tests
- refactor code to make it more modular