LinuxQuestions.org
Share your knowledge at the LQ Wiki.
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 03-17-2010, 07:14 PM   #1
astroboiii
Member
 
Registered: Feb 2004
Posts: 83

Rep: Reputation: 15
How to send mail using sendmail command?


Hi guys, I have sendmail setup on my server but for some reason the following command does not send me an email: echo "test" | mail -s testsubject xyz@gmail.com

however in my crontab i have MAILTO="anemail@anemail.com" and it that is pumping out emails.

Not sure what I am doing wrong here?

any help is appreciated. I am running this on an AmazonEC2 machine running Fedora Core 8.

Thanks.

Last edited by astroboiii; 03-17-2010 at 07:26 PM.
 
Old 03-17-2010, 07:26 PM   #2
astroboiii
Member
 
Registered: Feb 2004
Posts: 83

Original Poster
Rep: Reputation: 15
Quote:
Originally Posted by astroboiii View Post
Hi guys, I have sendmail setup on my server but for some reason the following command does not send me an email: echo "test" | mail -s testsubject xyz@gmail.com

however in my crontab i have MAILTO="anemail@anemail.com" and it that is pumping out emails.

Not sure what I am doing wrong here?

any help is appreciated. I am running this on an AmazonEC2 machine running Fedora Core 8.

Thanks.
Got this working. The mail was going to spam, I did check this before but I guess none of the emails had reached there when I had checked previously. Laugh and move on, thank's
 
  


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
Debian etch - Unable to send mail from command line or from php mail command lqforumuser Linux - Newbie 1 03-01-2009 06:56 AM
How to configure sendmail only to send mail to external mail account Nivix Linux - Newbie 2 10-23-2008 12:46 AM
can mail command be used to send mail onto global mail servers like yahoo etc dale_chip Linux - Newbie 4 08-12-2008 08:33 AM
sendmail: how to send mail from my yahoo e-mail address harryhaller Slackware 3 11-13-2006 11:00 PM
Mail Server Issues; Can't Send E-mail (using sendmail) Vegetarian Smoker Linux - Software 1 06-18-2006 02:16 PM

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

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