bash script send email attachment specify the email server code example
Example: bash send email from script
$ cat /path/to/file | mail -s "your subject" [email protected]
$ cat /path/to/file | mail -s "your subject" [email protected]