Shell script to send mail via smtp : Send mail from external smtp server

shell script sendmail from external sourceqshell script sendmail from external source

You can use gmail or any other SMTP server as a smart host to send all messages from your Linux / UNIX desktop systems. You need to use a simple program called ssmtp. It accepts a mail stream on standard input with recipients specified on the command line and synchronously forwards the message to the … Read more