Multiple Email Not Sending Correct |
I am trying to send multiple email but having small issue. I can get my news letter emails from the database but I can not get the email to send correct. For some reason it only sends the message to the first email in the list and not the others.
How can I make sure it sends to all emails in list. PHP Code: public function sendmail() { Email Model PHP Code: public function get_emails() {
There's only one rule - please don't tell anyone to go and read the manual. Sometimes the manual just SUCKS!
After you send the first email, you're either going to show_error() or redirect(), so the loop breaks. Instead, you should just track the results and store the debug messages for any failures, then show the errors or success message after the loop. For example:
PHP Code: public function sendmail() {
(07-24-2015, 07:06 AM)mwhitney Wrote: After you send the first email, you're either going to show_error() or redirect(), so the loop breaks. Instead, you should just track the results and store the debug messages for any failures, then show the errors or success message after the loop. For example: Thank you now under understand
There's only one rule - please don't tell anyone to go and read the manual. Sometimes the manual just SUCKS!
|
Welcome Guest, Not a member yet? Register Sign In |