| Crates.io | smail |
| lib.rs | smail |
| version | 0.4.0 |
| created_at | 2022-11-10 05:41:04.381474+00 |
| updated_at | 2025-08-22 14:46:01.84616+00 |
| description | Cli tool to easily send emails with attachments |
| homepage | https://github.com/bocarw121/s-mail-cli.git |
| repository | https://github.com/bocarw121/s-mail-cli.git |
| max_upload_size | |
| id | 709255 |
| size | 61,876 |
Send emails with attachments and body content from the command line using your gmail account More accounts support coming soon
Run the following command to get instructions on how to get your Gmail app password
smail instructions
$ smail credentials -p smtp.gmail.com -e myemail@gmail.com -c super-secret-password # stores your credentials for future use this is encrypted
$ smail send -t recipient-email@gmail.com -s "Here is the pdf file" -a ./filename.pdf # send an email with a subject and an attachment
$ smail send -t recipient-email@gmail.com -s "Hello there" -b "This is the content of my email" # send an email with a subject and body
$ smail send -t recipient-email@gmail.com -s "Monthly Report" -b "Please find attached the monthly report" -a ./report.pdf # send an email with a subject, body, and attachment
smail list
# list all credentials ie
{
"provider": "smtp.gmail.com",
# Hashed password
"password": "d29lZHJteGNxcHh3cmFyaA==",
"email": "myemail@gmail.com",
}
Cli tool to easily send emails with attachments
Usage: smail <COMMAND>
Commands:
instructions Get instructions on how to set up your credentials
credentials Store your email, password, and provider
send Send an email
list Get a list of all the credentials
help Print this message or the help of the given subcommand(s)
Options:
-h, --help Print help
-V, --version Print version
smail.json file in your home directory.C:\Users\username\smail.json/home/username/smail.json/Users/username/smail.jsonAdd 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