megetron Posted May 7, 2012 Share Posted May 7, 2012 Hello, I have some troubles to send mass email. I am using mail() function and the script is timed out. also there is a restriction in which you allowed to send 20 mails per minute. so I use sleep(5) to delay 5 seconds between every mail, but the script is exceeded timeout. Adding this: set_time_limit(0); will still not work. maybe can I set a background thread? if so please tell me how to. Also, if there is a built in script that can help me with that, I would like to hear about it. Thanks =] Quote Link to comment https://forums.phpfreaks.com/topic/262215-can-you-send-mail-for-bulk-email/ Share on other sites More sharing options...
downah Posted May 7, 2012 Share Posted May 7, 2012 I think this is what is used mostly for mailing, I heard that mail() in general is not very reliable. I think it is because you're sending mails from the server, have a look at: http://pear.php.net/package/Mail Quote Link to comment https://forums.phpfreaks.com/topic/262215-can-you-send-mail-for-bulk-email/#findComment-1343757 Share on other sites More sharing options...
megetron Posted May 7, 2012 Author Share Posted May 7, 2012 http://pear.php.net/package/Mail I am using shared host, is it possible to use this classes? Quote Link to comment https://forums.phpfreaks.com/topic/262215-can-you-send-mail-for-bulk-email/#findComment-1343759 Share on other sites More sharing options...
megetron Posted May 8, 2012 Author Share Posted May 8, 2012 I found this : Mail_Queue - Pear - PHP exactly like I needed. Thanks, Quote Link to comment https://forums.phpfreaks.com/topic/262215-can-you-send-mail-for-bulk-email/#findComment-1343976 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.