Checking Email exists via Proxy
<p>I've got some code that checks a mailserver for an existence of an email address.</p>

<p>I use something like this to open the connection directly.</p>

<pre><code>fsock = @fsockopen($mxhost, 25, $errno, $error, $this-&gt;con_timeout)
</code></pre>

<p>However, I am unable to figure out how to do the process via a socks proxy with username and password.</p>

<p>Can anyone help me out?</p>

<hr>

<p>Lets be more concise:</p>

<pre><code>$proxy = "1.2.3.4"; // proxy 
$port = 8080; // proxy port

$fp = fsockopen($proxy,$port); // connect to proxy
fputs($fp, "CONNECT $mailserver:25 ......");
</code></pre>

<p>I'm not sure what the fputs syntax should be.</p>

<p>Thanks</p>
