 <pre><code>$send = mail($to, $subject, $message); if(!$send){ echo 'Failed to send!'; } </code></pre> <p>The <a href="http://php.net/manual/en/function.mail.php" rel="nofollow">mail</a> function:</p> <blockquote> <p>Returns TRUE if the mail was successfully accepted for delivery, FALSE otherwise.</p> </blockquote>