Add mail content
I use the below command to send mail to user with the attachment file .
#mail -a attach.txt email@domain.com Would advise if I want to add mail content to the mail , when the user read the mail , the mail content shows today's date ( assume today is Apr 1 , 2014 ) as below , would advise how to change the mail command to do that ? thanks mail content ============= Dear all, Today is Apr 1 , 2014 |
This:
Code:
echo -e "Dear all,\nToday is $(date +%B\ %e,\ %Y)" | mail -a attach.txt email@domain.com |
All times are GMT -5. The time now is 11:09 PM. |