ForwardTrack allows you to set the email address that catches bounces for outgoing email like invites with FT_ERROR_RETURN_EMAIL in config.inc.php. However, if all the bounces go to a central address, the sender never gets feedback that his/her invite didn't reach its target.
Is there a reason for this? Is it to support removal of bad addresses from email lists? Or to make sure the error goes to a legitimate email address?
I'm considering changing the code to send bounces to the "From:" address instead, but wanted to check first.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Thanks, I adapted your code snippets to work for invites (by using the sender's name). For some reason, I didn't find your most recent revision to CampaignApp.class.php in the viewcvs browsable repository, but I'm all set for now.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
ForwardTrack allows you to set the email address that catches bounces for outgoing email like invites with FT_ERROR_RETURN_EMAIL in config.inc.php. However, if all the bounces go to a central address, the sender never gets feedback that his/her invite didn't reach its target.
Is there a reason for this? Is it to support removal of bad addresses from email lists? Or to make sure the error goes to a legitimate email address?
I'm considering changing the code to send bounces to the "From:" address instead, but wanted to check first.
good point. I made the following change to lib/FT/App/CampaignApp.class.php:
$err_from = (defined('FT_ERROR_RETURN_EMAIL') && FT_ERROR_RETURN_EMAIL)
? FT_ERROR_RETURN_EMAIL
: $from_email
;
$from_name = preg_replace('/[\[\<\]\>]+/i', '', $args['campaign']->title_short);
$hdrs = array(
'From' => "{$from_name} <{$from_email}>",
'Reply-To' => $from_email,
'Subject' => $args['campaign']->subject_register,
# 'To' => $args['person']->email,
'Sender' => $err_from,
'Return-Path' => $err_from,
'Errors-To' => $err_from
);
this way, if you just dont define FT_ERROR_RETURN_EMAIL it will use the From email automatically.
you can get the new version of this file from CVS via the instructions at:
http://sourceforge.net/cvs/?group_id=115464
thanks,
mike
Thanks, I adapted your code snippets to work for invites (by using the sender's name). For some reason, I didn't find your most recent revision to CampaignApp.class.php in the viewcvs browsable repository, but I'm all set for now.