我正在使用CakePHP
}
public function send_email($to,$subject,$body,$headers,"-f registration@ccfordmedia.com")
{
$email = new CakeEmail();
$email->from(array('registration@ccfordmedia.com' => 'Registration'));
$email->to($to);
$email->subject($subject);
$email->emailFormat('html');
$email->send($body);
}
任何人都可以帮助我
答案 0 :(得分:0)
试试这个
public function send_email($to,$subject,$body,$headers,"-f registration@ccfordmedia.com")
{
$email = new CakeEmail();
$email->from(array('registration@ccfordmedia.com' => 'Registration'));
$email->to($to);
$email->replyTo("registration@ccfordmedia.com");
$email->subject($subject);
$email->emailFormat('html');
$email->send($body);
}