#!/斌/庆典
ATTACH1 = file.xls
SUBJECT = “受试者”
FROM=me@domain.com
TO=you@domain.com
CC=them@domain.com
MIME =“application / xls”
FILE = $ ATTACH1
boundary =“--- my-impossible-text-for-mime-boundary --- $$ - ”
(猫<
来自:$ FROM
致:$ TO
主题:$ SUBJECT
日期:$(日期+“%a,%b%e%Y%T%z”)
哑剧版:1.0
内容类型:multipart / mixed;边界= “$边界”
此电子邮件附有文件
- $边界
内容类型:$ MIME; name =“$ FILE”
Content-Disposition:attachment; filename =“$ FILE”
!
)| sendmail -v $ {TO}