Mail not received - using CI email library [RESOLVED] |
[eluser]JoostV[/eluser]
Hi all, I sent a mail to 500 recipients, using the CI mail class. $this->email->print_debugger() says the mail was sent succesfully, and I can see the 500 recipients in the debugger's BCC listing. However, when I checked with several subscribers, I found out they did not receive the mailing. Hope you guys can help me out here. I'd appreciate any input. I noticed some invalid e-mailaddresses appear in the list (it's an old imported list, all new members e-mailaddresses are validated). Could that cause the problem? I tried sending a test newsletter to 2000 testaddresses and that worked just fine. Here's my controller code. Code: function sendmailing () {
[eluser]Jay Logan[/eluser]
I'm having an issue somewhat similar. I suggest trying to use SMTP and/or maybe a foreach to send your mail.
[eluser]NateL[/eluser]
I wouldn't send an e-mail out to 500 people using BCC. You're most likely overloading the server I've had success with a small app from a site called NotOneBit.com - Simple Mailer. I realize it's all procedural and not based on a framework, but it's free and it works. it throttles the amount of e-mails it sends out at once so your e-mails don't get hung up. If someone wrote a script in CodeIgniter that did the same thing, I'd use it!
[eluser]JoostV[/eluser]
Hi guys, appreciate your help. I will surely look into Simple Mailer. Meantime, I rewrote the code to throttle in BCC batches of 50 each using sendmail, and all mail seems to arrive fine now. I use set_time_limit() and ignore_user_abort() to avoid any time out problems. Code: // Subscribers are stored in $subscribers
[eluser]TheFuzzy0ne[/eluser]
If I recall correctly, only up to 100 recipients are supported. I'm not sure if that period, or per field, but hopefully you can figure that out. |
Welcome Guest, Not a member yet? Register Sign In |