- Ashik Nesin
There are times when you might want to send an email from your terminal.
It could be a status/warning notification or alert. Or it could be just for fun.
Here's how to do it easily using Pop CLI
Pop CLI uses Resend under the hood and makes sure to get
RESEND_API_KEY from the dashboard.
As for installing the Pop CLI, we can do it easily with brew.sh
brew install pop
# Configure API key as env prop
Send email via interactive CLI
Instead of entering the data every single time when sending an email. You can also
pass the needed information as a parameter
pop < message.md \
--from "email@example.com" \
--to "firstname.lastname@example.org" \
--subject "Hello, world!"
You can read their official documentation to learn more about how to use the CLI efficiently.
Happy sending emails!