how to execute mail command in a shellscript
pls tell me how to excute mail command in shell script
i had given mail -s "hello raj" raj in shell, where raj is username but when i execute that script cursor is wainting for input until i press cntrl+d But i have to send mail to a user in a shellscript not from the prompt |
Have the body of the letter in a file
Code:
cat body.txt | mail -s "Hello raj" raj subject as Hello raj |
All times are GMT -5. The time now is 01:14 PM. |