I see this code in modules/Campaigns/utils.php:
Code:
**
* Return bounce handling mailboxes for campaign.
*
* @param unknown_type $emails
* @param unknown_type $get_box_name, Set it to false if want to get "From Name" other than the InboundEmail Name.
* @return $get_name=true, bounce handling mailboxes' name; $get_name=false, bounce handling mailboxes' from name.
*/
function get_campaign_mailboxes(&$emails, $get_name=true) {
if (!class_exists('InboundEmail')) {
require('modules/InboundEmail/InboundEmail.php');
}
$query = "select id,name,stored_options from inbound_email where mailbox_type='bounce' and status='Active' and deleted='0'";
$db = DBManagerFactory::getInstance();
$result=$db->query($query);
while(($row=$db->fetchByAssoc($result))!= null) {
if($get_name) {
$return_array[$row['id']] = $row['name'];
} else {
$return_array[$row['id']]= InboundEmail::get_stored_options('from_name',$row['name'],$row['stored_options']);
}
$emails[$row['id']]=InboundEmail::get_stored_options('from_addr','nobody@example.com',$row['stored_options']);
}
if (empty($return_array)) $return_array=array(''=>'');
return $return_array;
} I manually ran the sql query:
Code:
$query = "select id,name,stored_options from inbound_email where mailbox_type='bounce' and status='Active' and deleted='0'";
and it does return a record.
I noticed this statement in a couple of other files too:
Code:
$emails[$row['id']]=InboundEmail::get_stored_options('from_addr','nobody@example.com',$row['stored_options']); If I am reading that correctly, it is only suppose to use nobody@example.com if the data is missing or a record doesn't exist. However, a record exists. Now what?
Bookmarks