![]() |
Send newsletter to mail list, pass name intomail body. - Printable Version +- CodeIgniter Forums (https://forum.codeigniter.com) +-- Forum: Archived Discussions (https://forum.codeigniter.com/forumdisplay.php?fid=20) +--- Forum: Archived Development & Programming (https://forum.codeigniter.com/forumdisplay.php?fid=23) +--- Thread: Send newsletter to mail list, pass name intomail body. (/showthread.php?tid=46756) |
Send newsletter to mail list, pass name intomail body. - El Forum - 11-14-2011 [eluser]yorvik[/eluser] Hello I am making a small newsletter system. Everything works fine for now. But I want in my mail body the name from the person who is receiving the newsletter. For example Persons in my mailinglist (john, mark , duncan). My mailinglist is saved in a database table newsletter [id, name, frontname, email]. What I want in my newsletter is for exaple : Hello John, .... This is my code for writing the body of the newsletter. Code: <?php I have this function for sending my newsletter Code: function mailNewsletter() Now how is it possible to write the names automaticly from each mailing subscriber, that are saved in the database? |