In my perl Script I have written command
`cat stat_file.txt | mail -s "Some subject" admin@server.name`
and getting email properly on address admin@server.name In this email I getting from: root@server.name, my question is, Is it possible to change this email address to something like do_not_reply@server.name.
Use mailx instead. Try
cat stat_file.txt | mailx -s "Some subject" -r do_not_reply@server.name -R do_not_reply@server.name admin@server.name
Details of command line options are available at http://manpages.unixforum.co.uk/man-pages/linux/opensuse-10.2/1/mailx-man-pa...
Raghu
On Thu, Sep 25, 2008 at 3:32 PM, Raghu Prasad prasad.raghu.k@gmail.comwrote:
Use mailx instead. Try
cat stat_file.txt | mailx -s "Some subject" -r do_not_reply@server.name -R do_not_reply@server.name admin@server.name
Details of command line options are available at
http://manpages.unixforum.co.uk/man-pages/linux/opensuse-10.2/1/mailx-man-pa...
Hi Thnx for ur tip. I used exim command line exim -f sender@server.name recipient
Raghu