当用户收到电子邮件时,localhost.server出现在我的标题中。我该如何删除?

时间:2013-07-25 05:15:22

标签: php email cakephp localhost

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

任何人都可以帮助我

1 个答案:

答案 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);        
}