Hi,
I'm trying to handle bounced message and send to a responsible System
Administrator.
I use CakePHP Email Component to send the message. On server side, I
use postfix to transport the message.
function sendAsEmail($data) {
$Email->sendAs = 'html';
$Email->from = $user['Sender']['username'] . '@example.com';
$Email->return = Configure::read('App.systemAdminEmail');
$Email->bcc = array($data['Message']['recipient_text']);
$content = 'Some content';
$Email->send($content);
}
As you can see above, I set the $Email->return to sysadmin's email
which it will send all the bounced message.
On postfix configuration, I tried creating a bounce.cf template and
set bounce_template_file.
http://www.howtoforge.com/configure-custom-postfix-bounce-messages
How do I get the bounced message and send it to System Administrator?
I also post this question to
http://stackoverflow.com/questions/3139559/processing-an-email-bounce-back-in-cakephp-and-postfix
Check out the new CakePHP Questions site http://cakeqs.org and help others with
their CakePHP related questions.
You received this message because you are subscribed to the Google Groups
"CakePHP" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected] For more options, visit this group at
http://groups.google.com/group/cake-php?hl=en