Sending mail before changing header location
<p>From php.net:</p>

<pre><code>&lt;html&gt;
&lt;?php
/* This will give an error. Note the output
 * above, which is before the header() call */
header('Location: http://www.example.com/');
?&gt;
</code></pre>

<p>Is it ok to read cookies and use mail() before changing header location?</p>
