From 5181216c11fe896cf3bc97f24daec936336ab9b4 Mon Sep 17 00:00:00 2001 From: Honza Hommer <2045468+honzahommer@users.noreply.github.com> Date: Sat, 18 Apr 2020 21:57:37 +0200 Subject: [PATCH] Add `msmtp` command --- notify.md | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) diff --git a/notify.md b/notify.md index b77ebde..9534148 100644 --- a/notify.md +++ b/notify.md @@ -109,12 +109,18 @@ export MAIL_FROM="xxx@xxx.com" # or "Xxx Xxx ", currently works onl export MAIL_TO="xxx@xxx.com" # your account e-mail will be used as default if available ``` -It will try to find and use `sendmail`, `ssmtp`, `mutt` or `mail` automatically, if installed. +It will try to find and use `sendmail`, `ssmtp`, `mutt`, `mail` or `msmtp` automatically, if installed. -If you want to specify which application to use, please use `MAIL_BIN`: +If you want to specify which application to use, please use `MAIL_BIN`: ```sh -export MAIL_BIN="sendmail" # should be one of following: sendmail, ssmtp, mutt or mail +export MAIL_BIN="sendmail" # should be one of following: sendmail, ssmtp, mutt, mail or msmtp (with or without path) +``` + +Use the given account instead of the account named "default" in `msmtp` command. + +```sh +export MAIL_MSMTP_ACCOUNT="account" ``` Ok, let's set notification hook: