Hello I’m pretty new to phpmailer I wanted to know if anyone knows how to have to user get a thank you email after submitting a form in phpmailer:
here is how i got it working – right now the user submits and gets a thank you page but also wanted them to get an email thank you too here’s the end function that makes it work to tell me i got the new lead:
[CODE]
$mail = new PHPMailer();
include_once ‘settings.php’;
$mail->MsgHTML($email_body);
if(!$mail->Send())
{
echo “Mailer Error: ” . $mail->ErrorInfo;
}
}
?>
The settings.php is this:
[CODE]
$mail->SetFrom(‘[email protected]’, ‘me’);
$mail->Subject = $subject;
$mail->AddAddress(‘[email protected]’);
Obviously if i just add another line like this:
[CODE]
$mail->MsgHTML($email_body);
$mail->MsgHTML(“<p>Thank you.</p> “);
means [B]I
Thanks