我symfony/mailer: 4.4.*
用于发送电子邮件。我需要向群组发送邮件。我使用bcc
的是向群组发送电子邮件,但在收到的邮件To
字段中为空白。
这是我使用的代码:
$email = (new TemplatedEmail())
->from(new Address($sender, $name))
->bcc(...$recipientEmails)
->subject($subject)
->htmlTemplate($template)
->context($content);
如果我使用to
而不是bcc
thenTo
字段包含发送的所有电子邮件地址。