require("class.phpmailer.php");
$mail = new PHPMailer();
$mail->IsSMTP(); // telling the class to use SMTP
$mail->Host = "mail.mymail.com"; // SMTP server
$mail->From = "$email";
$mail->FormName = "$cname ($fname)";
$mail->AddAddress("[email protected]");