here is my code, tried a couple of solutions like checking if the process is correct and if it's going where I wanted it too. The path. would appreciate any help what I'm doing wrong. Thanks in advance. So far it's outputting $messsageForSender
but still not sending.
include('code/phpmailer/PHPMailerAutoload.php');
if($return_e == true){
$todayis = date("l, F j, Y, g:i a") ;
$subject = "Support Request";
$messageForSender = "$todayis [EST]
<br />
<p>
Hi $firstname $lastname,
<br /><br />
Thank you for your inquiry.
<br />
One of our experts will get in touch with you very soon.
<br />
</p>";
echo $messageForSender;
$mail = new PHPMailer();
$mail->IsMail();
$mail->AddAddress('test@gmail.com');
$mail->Subject = $subject;
$mail->IsHTML(true);
$mail->From=$markto;
$mail->FromName=$markto;
$mail->Body = $messageForSender;
if(!$mail->Send()){
echo "Error sending: " . $mail->ErrorInfo;;
}else{
echo '<h1>mail is sent</h1>';
}