gpt4 book ai didi

linux - 通过sendmail发送时如何显示收件人地址

转载 作者:太空宇宙 更新时间:2023-11-04 04:51:55 24 4
gpt4 key购买 nike

我正在尝试发送

sendmail -it email@example.com < email.eml

“收件人”中的收件人会看到空的或未公开的收件人。

如何删除“未公开的收件人”并显示收件人的电子邮件?

最佳答案

sendmail 希望您在标准输入中提供 header 。

-t 选项告诉它从 header 中获取收件人,因此您不需要将其作为参数包含在内。

{ echo "To: email@example.com"; echo; cat email.eml; } | sendmail -it

空的echo是在标题和正文之间放置一个空行。

关于linux - 通过sendmail发送时如何显示收件人地址,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/55781553/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com