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