如何向swaks
密件抄送收件人发送致谢邮件?
答案1
来自斯瓦克斯常见问题解答:
...发送消息至[电子邮件受保护]和[电子邮件受保护],但只包括[电子邮件受保护]在“To:”标头中(或者,换句话说,“BCC”[电子邮件受保护]),以下内容将起作用:
swaks --to [email protected],[email protected] --header "To: [email protected]"
答案2
很容易:
swaks --to email1,email3 --from email2 --server smtp --auth LOGIN --auth-user "" --auth-password "" --header "Subject: test" --data "Subject: test
To: email1
Bcc: email3
From: email2
MIME-VERSION: 1.0
Content-Type: multipart/mixed; boundary=\"123456789\"
--123456789
Content-Type: text/html; charset=UTF-8
Content-Transfer-Encoding: 8bit
<html>
</html>