noamkrief Posted September 15, 2007 Share Posted September 15, 2007 I have a forum which sends new post notifications to all users who are subscribed to receive notifications when a new post occurs. It runs a sql query and sends a new topic notification email to all the users from that query. But spamassassin makes this process very slow. the cpu on the server go up to 90% for about 3 minutes because of the spamassassin engine trying to go through all these emails being sent - about 50 of them. the header(location ./blah.php) does not kick in untill spamassassin has finished which makes submitting a new post about 3 minutes of a wait! I already have it whitelisted in spamassassin but spamassassin is still scanning the messages. Is there something I can do in php to take me to the confirmation page listed on the header() function before the script is done? Hope think makes sense.. Thanks everyone! Noam Quote Link to comment https://forums.phpfreaks.com/topic/69429-sendming-bulk-emails-from-php-is-very-slow-due-to-spamassassin/ 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.