0

我正在使用 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);        
} 

任何人都可以帮助我

4

1 回答 1

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);        
} 
于 2013-07-25T05:31:26.897 回答