Sending a thank you email through phpmailer

I have a form with :

$name = $_REQUEST[‘name’] ;
$email = $_REQUEST[‘email’] ;
$textarea = $_REQUEST[‘textarea’] ;

$mail = new PHPMailer();

$mail->AddAddress(“”, “Full Name”);

My email gets sent to

Is there a way to send a thank you email to $email ?

All the information you need can be found in the PHPMailer wiki


I cannot get it to work when someone uses a different domain

i can get the email when i use …but i cannot send an email to a user who entered

any ideas?