You ssh'd into a fresh Linux box and you need to send an email. Maybe a backup completed. Maybe a deploy succeeded. Maybe a process crashed and you want a stack trace in your inbox.
The traditional path: install Postfix, edit main.cf , configure a smart relay, generate SASL credentials, restart the daemon, and pray nothing else on the box uses port 25. That is the 30-minute path.
The 60-second path:
curl -fsSL https://cli.nylas.com/install.sh | bash ~/.config/nylas/bin/nylas auth config --api-key YOUR_KEY ~/.config/nylas/bin/nylas email send --to [email protected] --subject hi --body "From $( hostname ) "
Enter fullscreen mode
Exit fullscreen mode
Three lines. Zero daemon.…