LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
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, 04: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, 04:57 PM   #2
gilead
Senior Member
 
Registered: Dec 2005
Location: Brisbane, Australia
Distribution: Slackware64 14.0
Posts: 4,141

Rep: Reputation: 168Reputation: 168
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, 09: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



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 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

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 01:43 PM.

Main Menu
Advertisement
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
Open Source Consulting | Domain Registration