problem with email using PHP

From: Date: Mon, 04 Aug 2003 21:55:10 +0000
Subject: problem with email using PHP
Groups: php.db 
Request: Send a blank email to php-db+get-29668@lists.php.net to get a copy of this message
Hi everyone, I got a problem with emailing in PHP. Any help is appreciated. Here's the situation: I have a webpage takes some information from user and submit it to database, then it'll sent out an email. When clicking on the submit button, it takes browser at least 10 seconds to finish the action. Both inserting data to database and sending email are successful. But I don't think it should take that long. Also, if I stop browser in the middle, actions will still be completed. I set up this function to do email function do_email($to_whom, $to , $subject, $body, $header) { if(mail($to, $subject, $body, $header)) echo("<tr><td><font color=\"red\">An Email is on the way to $to_whom </font></td></tr>"); else echo("<tr><td>ERROR occurred while atttempting to send an email!</td></tr>"); } Please help.

« previous php.db (#29668) next »