LinuxQuestions.org
Visit the LQ Articles and Editorials section
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
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.

Notices

Reply
 
Search this Thread
Old 12-14-2006, 05:39 PM   #1
laggerific
Member
 
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 someaddress@somedomain.com

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, 05:57 PM   #2
gilead
Senior Member
 
Registered: Dec 2005
Location: Brisbane, Australia
Distribution: Slackware64 14.0
Posts: 4,123

Rep: Reputation: 162Reputation: 162
Have you tried it this way instead?
Code:
echo "This is the body of the email" | mail -s "this is the subject" someaddress@somedomain.com
 
Old 12-15-2006, 10:28 AM   #3
laggerific
Member
 
Registered: Jan 2006
Posts: 65

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

Thank you thank you.
 
  


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


All times are GMT -5. The time now is 10:10 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