Send Gmail from curl
1. Get an App Password
https://myaccount.google.com/apppasswords Click the link above and enter an app name. Save the generated password.
2. Send an email with the curl command
Run the following command.
In the example below, the email content is written in mail.txt.
| |
Create the above file and run the following command.
| |
- Replace xxxxxxxxxxxxxxxx with your app password.
