Review your favorite Linux distribution.
Go Back > Forums > Linux Forums > Linux - Software
User Name
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.


  Search this Thread
Old 12-14-2006, 04:39 PM   #1
Registered: Jan 2006
Posts: 65

Rep: Reputation: 15
Question how do I send email through mail noninteractively?

I thought it was done like this:
echo "This is the body of the email" > mail -s this is the subject

But for some reason I'm not getting much luck with receiving messages sent like that...although if I do it interactively I'm getting them fine. Is there a better way to do this?
Old 12-14-2006, 04:57 PM   #2
Senior Member
Registered: Dec 2005
Location: Brisbane, Australia
Distribution: Slackware64 14.0
Posts: 4,125

Rep: Reputation: 164Reputation: 164
Have you tried it this way instead?
echo "This is the body of the email" | mail -s "this is the subject"
Old 12-15-2006, 09:28 AM   #3
Registered: Jan 2006
Posts: 65

Original Poster
Rep: Reputation: 15
I have now...that's what I was looking for.

Thank you thank you.


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 to send all email to another mail server Linux - Software 2 10-27-2006 10:19 AM
Send root mail to email address GUIPenguin Linux - General 1 03-01-2005 07:16 PM
send mail to external email address hamish Linux - Networking 8 12-10-2004 09:17 AM
spammer using my mail server send spam email pd5c18 Linux - Networking 2 07-14-2004 01:32 AM
using `mail` to send email to outside world ganninu Linux - Networking 0 08-04-2003 04:35 AM

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

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