-   Linux - Software (
-   -   can i send mail from command line? (

iflorea 11-01-2005 09:06 AM

can i send mail from command line?
i want to send a mail message from a script
can anybody tell me how can i do this?

bathory 11-01-2005 09:16 AM


man mail or man mailx

iflorea 11-01-2005 09:32 AM

maybe i did'n understand well but i want to send mail in non interactive mode
i already send a mail with mail but i had to write it interectively and to press ctrl+D to end it...

bathory 11-02-2005 03:23 AM

If you have saved your message in a file you can:

mail -s "subject" < message

iflorea 11-02-2005 03:29 AM

tanks to all
Meanwhile i found another one solution:
sendmail < mail_file

LinuxLala 11-02-2005 04:14 AM

This is a bit of a shameless plug but you can read this article on sending mails from the command line:

unixbhaskar 11-02-2005 07:08 AM

i hope u have got ur ans

All times are GMT -5. The time now is 07:31 AM.