View Full Version : Sending e-mails from a web-page fast -- how?
07-02-2001, 04:19 PM
Sending e-mails from a web-page by itself is very simple -- perl script that pipes the data to the sendmail program in the correct format. The problem is, I need to do it instantaneous for the user. And even if I use "-o DeliveryMode=b" option for sendmail (which means "background processing"), it still stalls the script until it can resolve the destination domain name. And the wait could be 30-60 seconds sometimes if the DNS server for the destination domain is slow. So, my question is -- how to make sendmail work totally in background? If I use "DeliveryMode=q" (which means "queue processing") it doesn't take any time to send the message (which is what I want), but it defers the actual sending of the message until the next queue rescan, which is set to 15 minutes which is already too high as my server is not a mail server, but still not long for my purpose. So what can I do?
Is there a way around it? Maybe a pre-made script I can look at?
[This message has been edited by fatale (edited 07-02-2001).]
07-02-2001, 07:43 PM
I'm curious why the 15 minutes delay is not well suited for this. Does it cause a delay at that time (ie every 15 minutes)? or is there some other reason that isn't effective for you?
NetMongol.com Free E-Mail @YourDomain.com (http://www.netmongol.com?geek)
Keep 100% of the Banner Space! For only $10 per month
NetMongol Affiliate Program (http://affiliate.netmongol.com) Paying $5 per sale and then $2 per month after that
07-03-2001, 12:46 PM
It is basically used on my Chess site to notify players when it's their turn. When somebody makes a move, it then sends an e-mail message to his/her opponent. And I would really like to have that message sent as soon as possible, but without any delay for the player who made the move. Is it possible?
I think that depends on the server. I use php to send mails. I get that in 0.000001 sec. http://geekvillage.com/ubb/smile.gif
Webmaster Of CelebritiesZones (http://www.celebritieszones.com/)
YourName@CelebritiesZones.com Free E-mail (http://www.celebritieszones.com/login.php)
My website sends email using ASP code and I receive then as soon as the user submits the form on my page. If you need help, please reply.
vBulletin® v3.7.4, Copyright ©2000-2013, Jelsoft Enterprises Ltd.