How to Remove Mailed-by Header in CakePHP? | Codeexecute

How to Remove Mailed-by Header in CakePHP?

Mailed-by header remove in cakephp:

  1. Through Email component:
    $this->Email->additionalParams = '-fnoreply@yourdomain.com';

     

  2. Through CakeEmail Class:
    $Email = new CakeEmail(array('eol'=>PHP_EOL,'additionalParameters' =>'-fnoreply@yourdomain.com'));