Mail (or, mailx) is a convenient utility for sending and receiving emails on unix/linux systems.Here is a tip on how to send an email with an attachment.
To send an email with message stored in file MailBody and a picture in file Pic.jpg as an attachment, we type:
(cat MailBody; uuencode Pic.jpg Pic.jpg)|mail -s "Subject of this mail" someone@some.where.com
No comments:
Post a Comment