php mail: check whether server needs authentication or not?
<p>On some servers, the PHP <code>mail()</code> function requires SMTP authentication (i.e., we have to provide an email address and password). How do I determine through a PHP script if the server requires authentication or not?</p>
