I'm using the cakePHP email component for sending mails from my application. Now the return-path has something like www@domain.tld
How can I set or rewrite the Return-Path value in emails when using the cakePHP Component?
I know how to do it when sending mails via 'mail' in PHP but the cakePHP email component seems to missing such a feature... or am I missing something? :)
There's an attribute called EmailComponent::return that is the return path for error messages. Note that this is different than the replyTo attribute.
$this->Email->return = 'name@example.com';
http://book.cakephp.org/1.3/en/The-Manual/Core-Components/Email.html