Command:
cat "file you required to send content" | /bin/mail -s "Subject" user@your.domain
Attach file in command line
Attache a file can be done in several ways;
I have used 'nail' command to attache a file and send to a user
Command is as fellows
cat "file you want to include as the body content" | nail -a
No comments:
Post a Comment