LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - General (https://www.linuxquestions.org/questions/linux-general-1/)
-   -   How to configure for mail command (https://www.linuxquestions.org/questions/linux-general-1/how-to-configure-for-mail-command-630911/)

khaos83 03-26-2008 10:22 PM

How to configure for mail command
 
I have a RH 9.
I want to use the mail command to send emails to me
e.g.
Code:

ls | mail -s "Sending email" khaos83_2000@linuxquestion.org
Do i need to provide a smtp server ip in my RH 9 for mail command?

If yes, how to do it ?

Simon Bridge 03-26-2008 10:57 PM

Quote:

I have a RH 9.
Which is so obsolete it's fossilized.

ls | mail -s "Sending email" khaos83_2000@linuxquestion.org
... send a directory list to yourself as a test. I suppose. What happens when you try?

cat /usr/share/common-licenses/GPL-3 | mail -s Testing khaos83_2000@linuxquestions.org


I don't think you'll get very far with mail, have you tried sendmail?


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