Zen Cart Logo
Forums / General Questions / Notice: FAILED to send Email to all recipients

Notice: FAILED to send Email to all recipients

Views: 1,015

Results 1 to 2 of 2
18 Jan 2012, 12:44 PM
#1
m_subhasish avatar

m_subhasish

New Zenner

Join Date:
Jan 2012
Posts:
1
Plugin Contributions:
0

Notice: FAILED to send Email to all recipients

Notice: FAILED to send Email to all recipients error while sending mail from admin>tools>sendmail option
If you want to fix the matter and have the subscribe addon then just check

email option - php
change admin/mail.php page
replace at line:27 do this
$smQuery=$audience_select['query_string'];code
$mail = $db->Execute($audience_select['query_string']);
if($mail->EOF){
$smQuery=str_replace('left','right',$smQuery);
$smQuery=str_replace('and (s.confirmed = 1 or s.customers_id >= 1)','',$smQuery);
$smQuery=str_replace('s.email_address','c.customers_email_address',$smQuery);
$smQuery=str_replace('where email_address','where customers_email_address',$smQuery);
$mail = $db->Execute($smQuery);
}

Problem i encountered is customer not in subscriber were not receiving mail rather what i found is basic query formation error in subscribe addon. Above is my fix.
Hope will help.

18 Jan 2012, 8:59 PM
#2
drbyte avatar

drbyte

Sensei

Join Date:
Jan 2004
Posts:
63,513
Plugin Contributions:
176

Re: Notice: FAILED to send Email to all recipients

It would be simpler and smarter to simply fix the incorrect query your addon put in the query_builder table in the database.

.
Zen Cart - putting the dream of business ownership within reach of anyone!
Donate to: DrByte directly or to the Zen Cart team as a whole

Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.