如何从我的cakephp shell脚本发送邮件时摆脱“代表”
这是我的电子邮件蛋糕代码
$Email = new CakeEmail();
$Email->from(array($contractResult['Entity']['email'] => $contractResult['Entity']['name']));
$Email->sender(array($contractResult['Entity']['email'] => $contractResult['Entity']['name']));
$Email->replyTo(array($contractResult['Entity']['email'] => $contractResult['Entity']['name']));
$Email->to('some@email.com');
$Email->subject('Invoice');
$Email->send('My message');
这会在Outlook中显示带有此字段的电子邮件
用户myusername [myusername@myserver.com];代表; DTDDussel vastgoed [from@email.com]