Resource icon

[bd] Mails 1.1.0

No permission to download
Also, I have just recently become aware that users flagged by this add on are unable to post! I see no reason why the forum should be locked to them. Can I turn this aspect off?
With version 0.9.4, you can now disable bounce processing if you don't like it. Also, admin edit can now change the email of bounced user without restriction.
 
With version 0.9.4, you can now disable bounce processing if you don't like it. Also, admin edit can now change the email of bounced user without restriction.

Nice. But without bounce processing, the advantage of this is primarily offloading email handling to mandrill or the like?

Another question: My site has over 540 users moved into the user state of "Email invalid (bounced)" by this add-on. Is there a way to get those folks back into the "valid" user state? The batch process in xenforo does not seem to work for changing user state.

Thanks.
 
Nice. But without bounce processing, the advantage of this is primarily offloading email handling to mandrill or the like?

Another question: My site has over 540 users moved into the user state of "Email invalid (bounced)" by this add-on. Is there a way to get those folks back into the "valid" user state? The batch process in xenforo does not seem to work for changing user state.

Thanks.
That's right. And sorry, no way to batch processing those users. They need to update email address too.
 
Are hard and soft bounces handled the same?

It would be good if you could handle distinction between soft bounce and hard bounce. Soft bounces should be ignored and hard bounces should move the user to the Invalid state.

Also (as I couldn't see this in the instructions) when the users are in the invalid email state are forum permissions restricted? Is there any way of making changes to that so we can adjust what permissions invalid email imposes as it isn't a user group.

Thanks!
 
Are hard and soft bounces handled the same?

It would be good if you could handle distinction between soft bounce and hard bounce. Soft bounces should be ignored and hard bounces should move the user to the Invalid state.

Also (as I couldn't see this in the instructions) when the users are in the invalid email state are forum permissions restricted? Is there any way of making changes to that so we can adjust what permissions invalid email imposes as it isn't a user group.

Thanks!
Only hard bounces are taken action against. For users who are put into the new user state, they will be considered as unconfirmed user. This is a default XenForo behavior and the add-on doesn't restrict anything by itself.
 
@xfrocks - sent out my newsletter and I received three similar server errors, is this from BD Mail add on?

Screen Shot 2014-10-05 at 5.27.28 PM.webp

Code:
Zend_Http_Client_Adapter_Exception: Email to carol2020@yahoo.ca failed: Read timed out after 10 seconds - library/Zend/Http/Client/Adapter/Socket.php:512
Generated By: admin, Today at 12:48 PM
Stack Trace
#0 /home/admin/public_html/community/library/Zend/Http/Client/Adapter/Socket.php(330): Zend_Http_Client_Adapter_Socket->_checkSocketReadTimeout()
#1 /home/admin/public_html/community/library/Zend/Http/Client.php(989): Zend_Http_Client_Adapter_Socket->read()
#2 /home/admin/public_html/community/library/bdMails/Transport/Mandrill.php(177): Zend_Http_Client->request('POST')
#3 /home/admin/public_html/community/library/bdMails/Transport/Abstract.php(57): bdMails_Transport_Mandrill->_bdMails_sendMail()
#4 /home/admin/public_html/community/library/Zend/Mail/Transport/Abstract.php(348): bdMails_Transport_Abstract->_sendMail()
#5 /home/admin/public_html/community/library/Zend/Mail.php(1194): Zend_Mail_Transport_Abstract->send(Object(Zend_Mail))
#6 /home/admin/public_html/community/library/XenForo/ControllerAdmin/User.php(1146): Zend_Mail->send(Object(bdMails_Transport_Mandrill))
#7 /home/admin/public_html/community/library/XenForo/ControllerAdmin/User.php(1051): XenForo_ControllerAdmin_User->_sendEmail(Array, Array, Object(bdMails_Transport_Mandrill))
#8 /home/admin/public_html/community/library/XenForo/FrontController.php(347): XenForo_ControllerAdmin_User->actionEmailSend()
#9 /home/admin/public_html/community/library/XenForo/FrontController.php(134): XenForo_FrontController->dispatch(Object(XenForo_RouteMatch))
#10 /home/admin/public_html/community/admin.php(13): XenForo_FrontController->run()
#11 {main}
Request State
array(3) {
  ["url"] => string(58) "http://mysite.com/community/admin.php?users/email-send"
  ["_GET"] => array(1) {
    ["users/email-send"] => string(0) ""
  }
  ["_POST"] => array(11) {
    ["page"] => string(2) "38"
    ["criteria"] => string(88) "{"receive_admin_email":"1","user_group_id":"2","user_state":["valid"],"is_banned":["0"]}"
    ["total"] => string(4) "6060"
    ["failed"] => string(1) "1"
    ["from_name"] => string(20) "Community"
    ["from_email"] => string(20) "admin@mysite.com.com"
    ["email_title"] => string(31) " Community Newsletter"
    ["email_format"] => string(4) "html"
    ["email_body"] => string(10835) "<html>
<head>
<title> Community Newsletter</title>
</head>
<body style="padding-top:0px;padding-right:0px;padding-bottom:0px;padding-left:0px;margin-top:0px;margin-right:0px;margin-bottom:0px;margin-left:0px;">

<!-- START outer table (wrap) -->
<table cellpadding="0" cellspacing="0" border="0" width="100%" height="90%" style="padding-top:0px;padding-right:0px;padding-bottom:0px;padding-left:0px;margin-top:0px;margin-right:0px;margin-bottom:0px;margin-left:0px;">
<tr><td bgcolor="#A5A6A4" valign="top">

<!-- START top bar -->
<table cellpadding="0" cellspacing="0" border="0" width="100%" height="40">
<tr><td bgcolor="#000000" align="center"><p style="font-family:Arial, Helvetica, sans-serif;font-size:11px;color:#DDDDDD;">Email not displaying correctly? <a href="http://mysite.com/community/Newsletter.html" style="color:#999999;">View the online version</a></p></td></tr>
</table>
<!-- END top bar -->

<!-- START top spacer -->
<table cellpadding="0" cellspacing="0" border="0" width="100%" height="65">
<tr><td bgcolor="#A5A6A4"></td></tr>
</table>
<!-- END top spacer -->

<!-- START main layout top -->
<table width="600" border="0" cellpadding="0" cellspacing="0" align="center">
<tr><td width="600" height="12" bgcolor="#2E2D3D"></td></tr>
<tr><td width="600" height="98"><img src="http://mysite.com/community/styles/images/images/black1.jpg" width="600" height="98" alt="main header image" mc:edit="header_image" mc:allowdesigner mc:allowtext></td></tr>
<tr><td width="600" height="42"><img src="http://mysite.com/community/styles/images/images/_global/layout-gradient-top.jpg" width="600" height="42" alt="subtle gradient image"></td></tr>
</table>
<!-- END main layout top -->



<!-- START main layout content (wrap) -->
<table width="600" border="0" cellpadding="0" cellspacing="0" align="center">
<tr><td bgcolor="#F4F4F2">



<!-- START main content -->
<table width="530" border="0" cellpadding="0" cellspacing="0" align="center">
<tr><td>




<!--
/* *********************************************************************************** */
/*                                    MODULES START
/* *********************************************************************************** */
-->


</td></tr>
</table>
<!-- END outer table (wrap) -->
</body>
</html>"
    ["_xfConfirm"] => string(1) "1"
    ["_xfToken"] => string(8) "********"
  }
}
 
@xfrocks - sent out my newsletter and I received three similar server errors, is this from BD Mail add on?

View attachment 85876

Code:
Zend_Http_Client_Adapter_Exception: Email to carol2020@yahoo.ca failed: Read timed out after 10 seconds - library/Zend/Http/Client/Adapter/Socket.php:512
Generated By: admin, Today at 12:48 PM
Stack Trace
#0 /home/admin/public_html/community/library/Zend/Http/Client/Adapter/Socket.php(330): Zend_Http_Client_Adapter_Socket->_checkSocketReadTimeout()
#1 /home/admin/public_html/community/library/Zend/Http/Client.php(989): Zend_Http_Client_Adapter_Socket->read()
#2 /home/admin/public_html/community/library/bdMails/Transport/Mandrill.php(177): Zend_Http_Client->request('POST')
#3 /home/admin/public_html/community/library/bdMails/Transport/Abstract.php(57): bdMails_Transport_Mandrill->_bdMails_sendMail()
#4 /home/admin/public_html/community/library/Zend/Mail/Transport/Abstract.php(348): bdMails_Transport_Abstract->_sendMail()
#5 /home/admin/public_html/community/library/Zend/Mail.php(1194): Zend_Mail_Transport_Abstract->send(Object(Zend_Mail))
#6 /home/admin/public_html/community/library/XenForo/ControllerAdmin/User.php(1146): Zend_Mail->send(Object(bdMails_Transport_Mandrill))
#7 /home/admin/public_html/community/library/XenForo/ControllerAdmin/User.php(1051): XenForo_ControllerAdmin_User->_sendEmail(Array, Array, Object(bdMails_Transport_Mandrill))
#8 /home/admin/public_html/community/library/XenForo/FrontController.php(347): XenForo_ControllerAdmin_User->actionEmailSend()
#9 /home/admin/public_html/community/library/XenForo/FrontController.php(134): XenForo_FrontController->dispatch(Object(XenForo_RouteMatch))
#10 /home/admin/public_html/community/admin.php(13): XenForo_FrontController->run()
#11 {main}
Request State
array(3) {
  ["url"] => string(58) "http://mysite.com/community/admin.php?users/email-send"
  ["_GET"] => array(1) {
    ["users/email-send"] => string(0) ""
  }
  ["_POST"] => array(11) {
    ["page"] => string(2) "38"
    ["criteria"] => string(88) "{"receive_admin_email":"1","user_group_id":"2","user_state":["valid"],"is_banned":["0"]}"
    ["total"] => string(4) "6060"
    ["failed"] => string(1) "1"
    ["from_name"] => string(20) "Community"
    ["from_email"] => string(20) "admin@mysite.com.com"
    ["email_title"] => string(31) " Community Newsletter"
    ["email_format"] => string(4) "html"
    ["email_body"] => string(10835) "<html>
<head>
<title> Community Newsletter</title>
</head>
<body style="padding-top:0px;padding-right:0px;padding-bottom:0px;padding-left:0px;margin-top:0px;margin-right:0px;margin-bottom:0px;margin-left:0px;">

<!-- START outer table (wrap) -->
<table cellpadding="0" cellspacing="0" border="0" width="100%" height="90%" style="padding-top:0px;padding-right:0px;padding-bottom:0px;padding-left:0px;margin-top:0px;margin-right:0px;margin-bottom:0px;margin-left:0px;">
<tr><td bgcolor="#A5A6A4" valign="top">

<!-- START top bar -->
<table cellpadding="0" cellspacing="0" border="0" width="100%" height="40">
<tr><td bgcolor="#000000" align="center"><p style="font-family:Arial, Helvetica, sans-serif;font-size:11px;color:#DDDDDD;">Email not displaying correctly? <a href="http://mysite.com/community/Newsletter.html" style="color:#999999;">View the online version</a></p></td></tr>
</table>
<!-- END top bar -->

<!-- START top spacer -->
<table cellpadding="0" cellspacing="0" border="0" width="100%" height="65">
<tr><td bgcolor="#A5A6A4"></td></tr>
</table>
<!-- END top spacer -->

<!-- START main layout top -->
<table width="600" border="0" cellpadding="0" cellspacing="0" align="center">
<tr><td width="600" height="12" bgcolor="#2E2D3D"></td></tr>
<tr><td width="600" height="98"><img src="http://mysite.com/community/styles/images/images/black1.jpg" width="600" height="98" alt="main header image" mc:edit="header_image" mc:allowdesigner mc:allowtext></td></tr>
<tr><td width="600" height="42"><img src="http://mysite.com/community/styles/images/images/_global/layout-gradient-top.jpg" width="600" height="42" alt="subtle gradient image"></td></tr>
</table>
<!-- END main layout top -->



<!-- START main layout content (wrap) -->
<table width="600" border="0" cellpadding="0" cellspacing="0" align="center">
<tr><td bgcolor="#F4F4F2">



<!-- START main content -->
<table width="530" border="0" cellpadding="0" cellspacing="0" align="center">
<tr><td>




<!--
/* *********************************************************************************** */
/*                                    MODULES START
/* *********************************************************************************** */
-->


</td></tr>
</table>
<!-- END outer table (wrap) -->
</body>
</html>"
    ["_xfConfirm"] => string(1) "1"
    ["_xfToken"] => string(8) "********"
  }
}

Also, not sure why, or if it's Xenforo or this add on, ther were members complaining they are getting mailings and in their setting I have confirmed that they have receive site mailings unchecked.
 
Also, not sure why, or if it's Xenforo or this add on, ther were members complaining they are getting mailings and in their setting I have confirmed that they have receive site mailings unchecked.
It's from this add-on. The error means your server had trouble connecting to external servers.

How are you sending out mailings?
 
Trying to use with SendGrid. Get ErrorException: Email to yyy@xxxyyyyzzz.com failed: preg_match() [<a href='function.preg-match'>function.preg-match</a>]: Compilation failed: unrecognized character after (?&lt; at offset 20 - library/bdMails/Transport/Abstract.php:91
 
Is it the intended behavior of this addon, to put hard bounce logs into the *server* error log? I always get a little anxious when I log in to the admincp and see "server errors have been logged" :barefoot:
 
I don't have it on server error log.

I do:

Screenshot at Oct 21 15-09-43.webp

And the error text:

Code:
XenForo_Exception: [bd] Mails: Sending mail failed, log is available at /home/talkbass/html/internal_data/bdmails_1413918168_82ab56ad7dbd40c1eb839eda88156313.log - library/bdMails/Transport/Abstract.php:75
Generated By: Unknown Account, Today at 2:02 PM
Stack Trace
#0 /home/talkbass/html/library/bdMails/Transport/Abstract.php(61): bdMails_Transport_Abstract->_bdMails_log(Array, '[{"email":"aros...', false, Array)
#1 /home/talkbass/html/library/Zend/Mail/Transport/Abstract.php(348): bdMails_Transport_Abstract->_sendMail()
#2 /home/talkbass/html/library/Zend/Mail.php(1194): Zend_Mail_Transport_Abstract->send(Object(Zend_Mail))
#3 /home/talkbass/html/library/XenForo/Model/MailQueue.php(71): Zend_Mail->send(Object(bdMails_Transport_Mandrill))
#4 /home/talkbass/html/library/XenForo/Deferred/MailQueue.php(10): XenForo_Model_MailQueue->runMailQueue(7.9999980926514)
#5 /home/talkbass/html/library/XenForo/Model/Deferred.php(256): XenForo_Deferred_MailQueue->execute(Array, Array, 7.9999980926514, '')
#6 /home/talkbass/html/library/XenForo/Model/Deferred.php(390): XenForo_Model_Deferred->runDeferred(Array, 7.9999980926514, '', false)
#7 /home/talkbass/html/library/XenForo/Model/Deferred.php(335): XenForo_Model_Deferred->_runInternal(Array, NULL, '', false)
#8 /home/talkbass/html/deferred.php(23): XenForo_Model_Deferred->run(false)
#9 {main}
Request State
array(3) {
["url"] => string(36) "http://www.talkbass.com/deferred.php"
["_GET"] => array(0) {
}
["_POST"] => array(3) {
["_xfRequestUri"] => string(30) "/threads/esp-vs-ibanez.574125/"
["_xfNoRedirect"] => string(1) "1"
["_xfResponseType"] => string(4) "json"
}
}

And finally, the file bdmails_1413918168_82ab56ad7dbd40c1eb839eda88156313.log has this at the bottom of it:

Code:
       </table>



</body>

</html>',

  ),

  1 => '[{"email":"aros...[deletedforprivacy]@verizon.net","status":"rejected","_id":"ec4a0866a61d4b13a726732c84e127ed","reject_reason":"hard-bounce"}]',

  2 => false,

  3 =>

  array (

    'microtime' => 0.18860507011414,

  ),

)
 
Aw sorry, Yes it's normal behavior of this addon.
I'm not using this addon anymore by the way.
 
I do:

View attachment 87039

And the error text:

Code:
XenForo_Exception: [bd] Mails: Sending mail failed, log is available at /home/talkbass/html/internal_data/bdmails_1413918168_82ab56ad7dbd40c1eb839eda88156313.log - library/bdMails/Transport/Abstract.php:75
Generated By: Unknown Account, Today at 2:02 PM
Stack Trace
#0 /home/talkbass/html/library/bdMails/Transport/Abstract.php(61): bdMails_Transport_Abstract->_bdMails_log(Array, '[{"email":"aros...', false, Array)
#1 /home/talkbass/html/library/Zend/Mail/Transport/Abstract.php(348): bdMails_Transport_Abstract->_sendMail()
#2 /home/talkbass/html/library/Zend/Mail.php(1194): Zend_Mail_Transport_Abstract->send(Object(Zend_Mail))
#3 /home/talkbass/html/library/XenForo/Model/MailQueue.php(71): Zend_Mail->send(Object(bdMails_Transport_Mandrill))
#4 /home/talkbass/html/library/XenForo/Deferred/MailQueue.php(10): XenForo_Model_MailQueue->runMailQueue(7.9999980926514)
#5 /home/talkbass/html/library/XenForo/Model/Deferred.php(256): XenForo_Deferred_MailQueue->execute(Array, Array, 7.9999980926514, '')
#6 /home/talkbass/html/library/XenForo/Model/Deferred.php(390): XenForo_Model_Deferred->runDeferred(Array, 7.9999980926514, '', false)
#7 /home/talkbass/html/library/XenForo/Model/Deferred.php(335): XenForo_Model_Deferred->_runInternal(Array, NULL, '', false)
#8 /home/talkbass/html/deferred.php(23): XenForo_Model_Deferred->run(false)
#9 {main}
Request State
array(3) {
["url"] => string(36) "http://www.talkbass.com/deferred.php"
["_GET"] => array(0) {
}
["_POST"] => array(3) {
["_xfRequestUri"] => string(30) "/threads/esp-vs-ibanez.574125/"
["_xfNoRedirect"] => string(1) "1"
["_xfResponseType"] => string(4) "json"
}
}

And finally, the file bdmails_1413918168_82ab56ad7dbd40c1eb839eda88156313.log has this at the bottom of it:

Code:
       </table>



</body>

</html>',

  ),

  1 => '[{"email":"aros...[deletedforprivacy]@verizon.net","status":"rejected","_id":"ec4a0866a61d4b13a726732c84e127ed","reject_reason":"hard-bounce"}]',

  2 => false,

  3 =>

  array (

    'microtime' => 0.18860507011414,

  ),

)
Yeah, it logged that the target email was rejected by the provider and it should put that user into email bounced state.
 
Most troubling! I logged on as a user that I know is valid, and I'm getting the "resend confirmation email" message and, of course, the user cannot post anything.

How can I completely remove this add-on and move all of the users back to valid?
 
Back
Top Bottom