PDA

View Full Version : Sendmail Workaround?


JasonDesRoches
08-31-2001, 04:49 PM
Has anyone else had a problem with using email notification on their board? I've recently had to turn my mail options off because a reply to a post would often hang until sendmail would kick-in, and often the browser would time out before this happened. What's worse is that impatient posters would click submit 50 times, sending 50 requests to sendmail, and spamming posters before him. Has anyone found a better workaround for this? Maybe a hack to store email notifications, instead of sending them out on submitclick? Once the email notification is stored in a file, a cron job could be set up to send them out every 5 minutes? Maybe there's something even better than that? Beats me. Any Ideas?

scoutt
10-07-2001, 09:43 PM
Hi, Jason :)

that is not a bad idea. what if you put a loop that like counts for so many seconds/minutes then sends it out. that way once the user hits submit it would load the page then send out the email after the loop is done?

actually I wanted to bump this to the top to see if anybody else has an idea or workaround. seeing that is has been a month since you posted this. :D

JasonDesRoches
10-08-2001, 03:03 AM
Thanks for the bumpup Scoutt :D However because of the rarity of this problem, I don't know how motivated anyone will be in making this hack. Maybe if others that have encountered this post here in support it will eventually grab someone's attention, maybe even a developer :)

LordDG
10-08-2001, 03:06 AM
Me me me!

I have been plauged by this problem for several months now. I have been trying to find a work around with no luck. I had heard that vB will come up with its own subroutine in the future to solve this problem. However, for now there is no solution in view :(

tubedogg
10-08-2001, 03:53 AM
Just as a general FYI (not as a "I'm doing this hack" :D):
In the next version the developers are looking at an alternative to using PHP's mail() call (which in turn calls sendmail - although if so inclined, one can change this; I believe Wayne at SitePointForums uses qmail (?)). However it is for the next *major* release which is several months (at least) off.