I tried to implement that into my form with the following after downloading the phpmailer files and uploaded to server but I still recieve no email 🙁 any ideas.? am i integrating it incorrectly?
<?php
//create short variable names
$firstname=$POST['FirstName'];
$lastname=$POST['LastName'];
$comments=$_POST['comments'];
require("class.phpmailer.php");
$mail = new PHPMailer();
$mail->IsSMTP(); // send via SMTP
$mail->Host = "smtp.myaddress"; // SMTP servers some IP or host
$mail->SMTPAuth = true; // turn on SMTP authentication
$mail->Username = "me@myisp.com"; // SMTP username
$mail->Password = "***"; // SMTP password
$mail->From = "me@myisp.com";
$mail->FromName = "Ben";
$mail->AddAddress("me@hotmail.com");
$mail->AddReplyTo("sales@hotmail.com","comment");
$mail->WordWrap = 50; // set word wrap
// wanna send some attachements use this below, correct the path or filename
// $mail->AddAttachment("/var/tmp/file.tar.gz"); // attachment
// $mail->AddAttachment("/tmp/image.jpg", "new.jpg");
$mail->IsHTML(true); // send as HTML
$mail->Subject = "LimoTek";
$mail->Body = 'First Name: '.$firstname. "\n"
.'Last Name: '.$lastname. "\n"
.'Comments/Requirements: '.$comments. "\n";
$mail->AltBody = "This is the text-only body";
if(!$mail->Send())
{
echo "Message was not sent <p>";
echo "Mailer Error: " . $mail->ErrorInfo;
exit;
}
echo "Message has been sent";
?>