uuencode
是否可以使用and发送多个附件sendmail
?
在一个脚本中,我有一个变量,其中包含需要附加到单个电子邮件的文件,例如:
$attachments=attachment_1.pdf attachment_2.pdf attachment_3.pdf attachment_4.pdf
还有一个$template
变量,例如:
$template="Subject: This is the subject
From: no-reply@domain.com
To: %s
Content-Type: text/plain
This is the body.
"
我想出了:
printf "$template" "$recipient" |
sendmail -oi -t
在此的某个地方,我必须将所有内容附加到$attachments
变量中?