Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I want my server to send me email alerts every time it does things such as run a backup. I have tried to setup programs like Sendmail, Postfix, etc on my Ubuntu Server box and it is really a pain for me to get it working. Is there any online service or some easy gateway where my server can send email alerts? If not, is there any easy scripts to get a Linux mail program up and running?


share|improve this question
up vote 6 down vote accepted

If you're having trouble configuring the standard mail programs, you can use a command-line SMTP client such as sendEmail. Along with the address, message, and other data, simply specify an SMTP server. You can use GMail along with a username and password for example.

Here are the available command-line switches:

alt text

share|improve this answer
Sweet screenshot. – Nathaniel Apr 18 '10 at 6:08
This is perfect for my needs. Thanks man. – QAH Apr 18 '10 at 6:17
echo "Your message"|mail -s "subject of the message" your@address.domain
share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.