Mailx
Is a Software to send mail from Linux.
Setup with Sendgrid¶
Source
- apt install bsd-mailx
- Edit sudo nano /etc/mail.rc
and add:
set smtp=smtp://smtp.sendgrid.net:587
set [email protected]
set smtp-auth=login
set smtp-auth-user=apikey
set smtp-auth-password=GENERATED_KEY
- Test:
mail -s "This is A Test Subject" [email protected]
- When hitting
Enter
, the mail body must be sent - Exit this mode by
.
thenEnter
- When hitting