I wan’t to know is it possible & how to get my backup script output or backup fails error via email using google or other smtp server. I don’t want to install mail-server in my local. what should I do & how to fix it?
There are other options to using
mutt to send emails via an external SMTP server.
Nail will do what you want and nothing more.
Both Esmtp and Ssmtp both replace sendmail (or Postfix or Exim or whatever) with a simple mail relay that will relay everything via an external SMTP server.
Check more discussion of this question.
- Sending mail through shell script
- Linux email server for sending email from multiple IP addresses
- Which user are my php scripts sending email as?
- How sending email works?
- Sending email from a script including attachments