Page 1 of 1

php sendemail retry issue

Posted: Tue Nov 04, 2008 12:58 pm
by titaniumbmx
i need help i'm new to php. i just started working for a new company and there website has a php function i'm wrestleing with

we have a form on our website that writes to a mysql database then the script queries the database and sends us an email telling us we have a new client/order. http://ubuildabook.com/order-form.html

that part works fine but if there is an error of any kind it does not retry

any suggestions

Re: php sendemail retry issue

Posted: Tue Nov 04, 2008 2:28 pm
by Syntac

Code: Select all

while( !mail( $to, $subject, $message, $headers ) )
    continue;
Might work? You'll need to put in a thingy to limit the number of retries, though.