Dec 14, 2011
tom

Shell Script for Sending output or log via email

Question

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?

Answer

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.

Related posts:

  1. Sending mail through shell script
  2. Linux email server for sending email from multiple IP addresses
  3. Which user are my php scripts sending email as?
  4. How sending email works?
  5. Sending email from a script including attachments

Leave a comment