[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [msmtp-users] Wrapper for msmtp. Writes a mail to procmail on failure
On Wed, 27. Jul 2005, 12:32:26 +0530, Ligesh wrote:
> Does msmtp have some trigger which will execute certain commands if
> the mail send is not successful?
No, you have to check the exit code. If you want to have a short summary
of the failure/success status on stdout, you can use the option
'--logfile=-' (the normal error messages are still printed to stderr in
this case).
You can also get more information about the error (if any) from the exit
code itself: see your systems sysexits.h header file.
Martin