setFrom表示我的帐户上的email变量和name变量不是SenderSignature,请添加并确认地址以使用它。我不知道该如何解决。 CNA有人帮忙吗?其他一切都很好。
$fromName = Yii::$app->request->post('fromName');
$fromEmail = Yii::$app->request->post('fromEmail');
Yii::$app->mailer->compose(
[
'text'=>'credit-request/index'
],
[
'invoice_number' => $invoice_number,
])
->setFrom([$fromEmail => $fromName])
->setReplyTo([$fromEmail => $fromName])
->setTo(getenv('CREDIT_REQUEST_EMAIL'))
->setSubject($account_number)
->send();
}