LinuxQuestions.org
Did you know LQ has a Linux Hardware Compatibility List?
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices

Reply
 
Search this Thread
Old 01-07-2005, 10:02 PM   #1
ryedunn
Member
 
Registered: Jul 2003
Location: Chicago
Distribution: Fedora, ubuntu
Posts: 458

Rep: Reputation: 30
sendmail subject via script


my script has something like this

> | mail -s "blah blah" $MAILTO

the command mail doesnt work on my box because I use sendmail. I can use
Quote:
#sendmail email@domain.com
Subject: blah blah
.
and that works fine but how can I do this from a shell or rather what do I need to change in the script?

Thank you,
TheGnubie
 
Old 01-07-2005, 11:38 PM   #2
drj000
Member
 
Registered: Sep 2004
Location: Hagerstown, MD
Distribution: Ubuntu Natty Narwahl
Posts: 258

Rep: Reputation: 31
Re: sendmail subject via script

Quote:
Originally posted by ryedunn
the command mail doesnt work on my box because I use sendmail.
I use sendmail, and the mail command still works for me. I don't understand why it wouldn't work for you. In fact, I just tested it by typing "ls -l | mail -s 'Directory Listing' myemail@isp.com" and I received it without a problem.
 
Old 01-08-2005, 11:22 AM   #3
ryedunn
Member
 
Registered: Jul 2003
Location: Chicago
Distribution: Fedora, ubuntu
Posts: 458

Original Poster
Rep: Reputation: 30
mail command not found
 
Old 01-08-2005, 12:11 PM   #4
drj000
Member
 
Registered: Sep 2004
Location: Hagerstown, MD
Distribution: Ubuntu Natty Narwahl
Posts: 258

Rep: Reputation: 31
Quote:
Originally posted by ryedunn
mail command not found
Well, mail is a part of the GNU mailutils package, or the mailx package, so if you can get one of those, you'll have mail. It's odd that it wouldn't come with your distribution.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Sendmail Redirect by Message Subject? rld1025 Linux - Networking 1 10-26-2004 02:04 PM
subject parameter for sendmail? pwtct Linux - Software 4 08-06-2004 10:58 AM
sendmail.cf , filter by subject using regular expression? linuxlah Linux - Software 0 01-30-2004 11:01 PM
sendmail script nowhere..... morbo Linux - Networking 6 01-18-2002 08:27 PM
sendmail (dont just ignore it 'cause its got sendmail in the subject :P) GnomeKing Linux - Networking 1 11-12-2001 09:57 PM


All times are GMT -5. The time now is 05:00 PM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration