php sendemail retry issue

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
titaniumbmx
Forum Newbie
Posts: 1
Joined: Tue Nov 04, 2008 12:10 pm

php sendemail retry issue

Post 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
User avatar
Syntac
Forum Contributor
Posts: 327
Joined: Sun Sep 14, 2008 7:59 pm

Re: php sendemail retry issue

Post 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.
Post Reply