CodeIgniter sends three mails instead of one |
Hello,
I am using CodeIgniter 3.02 for sending a newsletter. I'm just sending 1 mail to one recipient, but I receive the same mail 3 times. I don't use a loop. I don't understand why three mails were sent. My code : Code: function sendMailProspects(){ I just execute this method directly in the url, no loop, nothing special. I've tested this code on localhost and on an shared hosting with the same result: I receive three mails. What could I be doing wrong? Thank's Patrice
You must be calling it three times. Either in your controller or somewhere else. Check carefully again. Also disable any plugins you might have on your web browser.
http://stackoverflow.com/questions/13971...send-twice
Practical guide to IgnitedCMS - Book coming soon, www.ignitedcms.com
Hello,
I resolved the problem. It was the web browser who are the origin of the problem. I don't know realy why, but with this method, there is't duplicat mail. function index () { self:endMailProspects(); redirect('newsletter'); } |
Welcome Guest, Not a member yet? Register Sign In |