title: PHPMailer erroring out with Call to undefined method PHPMailer::SetFrom()
body: <p>Hay I'm using PHPMailer to send some simple emails, however the function SetFrom() doesn't seem to work, even though the code I'm using is straight from phpmails docs (<a href="http://phpmailer.worxware.com/index.php?pg=examplebmail" rel="noreferrer">http://phpmailer.worxware.com/index.php?pg=examplebmail</a>)</p>
  
  <p>Here my error</p>
  
  <pre><code>Call to undefined method PHPMailer::SetFrom()
  </code></pre>
  
  <p>and my script</p>
  
  <pre><code>require_once('inc/phpmailer/class.phpmailer.php');
  $mail = new PHPMailer(); // defaults to using php "mail()"
  $body = $message;
  $mail-&gt;SetFrom('tell-a-friend@domain.com', 'tell a friend');
  $mail-&gt;AddAddress($to_email, $to);
  $mail-&gt;Subject = "tell a friend";
  $mail-&gt;MsgHTML($body);
  $mail-&gt;Send();
  </code></pre>
  
  <p>Any ideas?</p>
  
  <p>EDIT</p>
  
  <p>turns out the SetFrom() function doesnt exist in my version of phpmailer, i can set these values using</p>
  
  <pre><code>$mail-&gt;From = '';
  $mail-&gt;FromName = '';
  </code></pre>