smail-0.1.2 is not a library.
S-Mail Cli Client
Send emails with attachments from the command line
Usage
Set your credentials
For Gmail to get you credentials password
- Go to Google Account and click on the avatar on the top right corner and click on
Manage your Google Account - Find the Security section on the left side
- In the Signing in to Google section, Enable 2-Step Verification if not already enabled
- In the same section, click on App passwords
- Select
Mailas the app andOtheras the device and give it a name - Click on Generate and copy the password
Send an email with attachment
# file must be in the current directory