Why Email foreach does not loop? - Printable Version +- CodeIgniter Forums (https://forum.codeigniter.com) +-- Forum: General (https://forum.codeigniter.com/forumdisplay.php?fid=1) +--- Forum: Lounge (https://forum.codeigniter.com/forumdisplay.php?fid=3) +--- Thread: Why Email foreach does not loop? (/showthread.php?tid=81188) |
Why Email foreach does not loop? - luckmoshy - 02-01-2022 Hi guys Why does loop PHP Code: <?php The output of the above code snippet does only shows: Code: message: blaaablaaa and not does show: Code: somo: blaablaa Where is wrong? RE: Why Email foreach does not loop? - seunex - 02-01-2022 Before every foreach try to clear email first $email->clear() RE: Why Email foreach does not loop? - InsiteFX - 02-02-2022 He's over writing setMessage every time through the foreach loop. After the loop he sends the email. |