Find the answer to your Linux question:
Results 1 to 3 of 3
Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #1

    sending mail via the command line

    Hello good people! - I want to be able to send mail from the terminal command to my pop3/smtp mail account running at work. I have a linux workstation running fedora - I have a work email account which I can use fine with my standard email client (evolution) however I'm trying to get nagios monitoring software to pass alert via the command line to my work email account which can then email on... sounds confusing but I hope you can follow - I am not allowed to make my pc a MTA -


  2. #2
    Linux User
    Join Date
    May 2003
    /bin/mailx -s "subject" <email address> should work fine
    if you want to mail the contents of a file or something you can even so this:
    cat <filename> | /usrlib/sendmail <email address>
    Fixing Unix is better than working with Windows.

  3. #3


    Thanks for that, uunfourtantly my friend it seems I'm not authorised as an MTA on our network....

  4. $spacer_open

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts