simple form to send email
<p>I want to show whether email sent successfully or failed on the same form. I want to show the empty form after email sent successfully. How can i do it?
here is the form</p>

<pre><code>&lt;input type="text" name="name" /&gt;
&lt;input type="text" name="email" /&gt;
&lt;input type="submit" name="submit" /&gt;
&lt;span&gt;here i want to show msg&lt;span&gt;
</code></pre>
