Quote:
Originally Posted by djbaxter
At present we have the option of including the EZ Bounce link in EITHER the header or the body of the email. It would be nice to have the option of both. Depending on the email server, no matter which option I choose some bounced emails will be missing the link.
|
You can achieve your desired result by editing the following code within the plugin for hook location: mail_send
PHP Code:
if (!$vbulletin->options['ezb_showezbouncelink'])
{
// if turned off, put bounce url into header (default option)
$headers .= 'X-EZbouncer: ' . $bounceurl . $delimiter;
/* replace above line with following line if the url in bouncing email header is not displaying as a link
$headers .= 'X-EZbouncer: ' . $bouncestring . $delimiter;
*/
}
else
{
// if turned on, construct bounce code & place in email message body
$bouncecode = construct_phrase($vbphrase['anti_bounce_message'], $bounceurl);
/* replace above line with following line if the url in bouncing email body is not displaying as a link
$bouncecode = construct_phrase($vbphrase['anti_bounce_message'], $bouncestring);
*/
$message .= $bouncecode;
}
Quote:
Originally Posted by Alfa1
Im having issues with this safety check. How do I turn this off?
I want someone else to handle my thousands of bounces, but I do not want to give "can_admin_settings" permissions.
|
this permission check is done in the ezbounce.php file in the following code:
PHP Code:
// ######################## CHECK ADMIN PERMISSIONS #######################
if (!can_administer('canadminsettings'))
{
print_cp_no_permission();
}
If you want to change how this condition is evaluated, simply change the conditional within the if() clause.