LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
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, 08: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 08:26 PM.
 
Old 03-17-2010, 08: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


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

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

All times are GMT -5. The time now is 07:49 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration