Why is PHP function breaking my Javascript
<p>I have this scipt call:</p>

<pre><code>....
$objResponse-&gt;addScriptCall("my_script");
return $objResponse-&gt;sendResponse();
</code></pre>

<p>This works ok but if I try to send a php mail just before, the script is not called:</p>

<pre><code>...
$send =&amp; $mailer-&gt;Send(); 
$objResponse-&gt;addScriptCall("my_script");
return $objResponse-&gt;sendResponse();
</code></pre>

<p>Why is that happening? 
The problem persists even if I replace the email function with a plain:</p>

<pre><code>...
print 'hello'; 
$objResponse-&gt;addScriptCall("my_script");
return $objResponse-&gt;sendResponse();
</code></pre>
