PHP mail script
I have a simple mailto script for emailing the contents of a form to me and have 2 questions
1) if i put in code to redirect to a different page after the mail command will this gaurantee that the mail command executes fully before the redirect command is run.
2) according the the PHP manual (http://uk.php.net/manual/en/function.mail.php) the mail command returns true or false depending on if or not the mail was successfully sent. can i use this to determine what code is run next with an if statement and how do i do so?
also if the mail fails to send how long would the script keep trying for before it gives up and returns the false value
