Send mail

echo 'heres the content'| mail -a /path/to/attach_file.txt -s 'mail.subject' [email protected]
# use -a flag to set send from (-a "From: [email protected]")
click the source code to copy