Email

在沒有 CC 的情況下向多個使用者發送郵件

  • June 9, 2020

大家好,我想知道是否有可能以一種我可以在 To: 中將多個電子郵件地址串起來的方式使用 sendmail:

From: sendmail
To: person01@gmail.com;person02@gmail.com
Subject: Did You Both Receive It?

I hope you did

而不是使用

From: sendmail
To: person01@gmail.com
Cc: person02@gmail.com
Subject: Did You Both Receive It?

I hope you did

要將多個地址放在To:Cc:Bcc:行上,請用逗號分隔它們(加上可選空格)。有些郵件閱讀器允許輸入分號來分隔地址並顯示用分號分隔的地址,但這不是標準語法。

From: sendmail
To: person01@gmail.com, person02@gmail.com
Subject: Did You Both Receive It?

您可以在逗號之後將標題拆分為多行(以及地址中的其他一些位置,但這更棘手)。續行必須以至少一個空格或製表符開頭。

From: sendmail
To: person01@gmail.com,
   person02@gmail.com
Subject: Did You Both Receive It?

引用自:https://unix.stackexchange.com/questions/203329