我被困在这里。有这样的PHP代码可以正常工作:
$adminMail = array(
'from' => $values['email'],
'replyTo' => $values['email'],
'email' => 'email@myemail.com', //how to add second email address?
'subject' => 'Feedback Message',
'template' => false
);
如何将辅助电子邮件地址添加到'email'=>
提前致谢
答案 0 :(得分:0)
$adminMail['email'] .= ', ' . $secondEmail;
答案 1 :(得分:0)
只需将另一封逗号为(,)
的电子邮件分开。如下所示:
$adminMail = array(
'from' => $values['email'],
'replyTo' => $values['email'],
'email' => 'email@myemail.com, second@myemail.com', //how to add second email address?
'subject' => 'Feedback Message',
'template' => false
);