phpgmailer set from mail issue
<p>I'm trying to use php mail class as shown in the example. </p>

<p><a href="http://www.vulgarisoip.com/category/phpgmailer/" rel="nofollow">http://www.vulgarisoip.com/category/phpgmailer/
</a></p>

<p>I'm using it my site's contact us form. Can I set the "$mail->From" address as the person who filled the form? When i reveive the mail it always shows that the "from address" as my gmail account. Any help would really helpful.</p>

<pre><code>&lt;?php
require_once('phpgmailer/class.phpgmailer.php');
$mail = new PHPGMailer();
$mail-&gt;Username = 'username@gmail.com'; 
$mail-&gt;Password = 'gmailpassword';
$mail-&gt;From = 'from@hotmail.com'; // Like to set this address as the address of the person who filled the form
$mail-&gt;FromName = 'User Name';
$mail-&gt;Subject = 'Subject';
$mail-&gt;AddAddress('myname@mydomain.com'); // To which address the mail to be delivered
$mail-&gt;Body = 'Hey buddy, heres an email!';
$mail-&gt;Send();


?&gt;
</code></pre>
