Link to home
Start Free TrialLog in
Avatar of ajaypappan
ajaypappanFlag for United States of America

asked on

mail a file using mail utility

how to mail a file from /usr/local/asd.txt to the xyz@yahoo.com. I did something likes this
mail xyz@yahoo.com < /usr/local/asd.txt
is it right?
ASKER CERTIFIED SOLUTION
Avatar of paullamhkg
paullamhkg

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of paullamhkg
paullamhkg

"mail xyz@yahoo.com < /usr/local/asd.txt
is it right?"

this will make the content of asd.txt as the mail body and send an email to xyz@yahoo.com.

if you wanna to send like this with a suject, as the -s option.
sorry typo

add the -s option