Friday 22 April 2011

send e-mails from a shell script including file attachments


Install uuencode:
$ sudo apt-get install sharutils





Send email with attachments:
$ uuencode file1.png file1.png | mail -s "Subject" micharg@gmail.com

No comments:

Post a Comment