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->IsSMTP();

$mail->AddAddress(“myemail@domain.com”, “Full Name”);

My email gets sent to myemail@domain.com

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

All the information you need can be found in the PHPMailer wiki http://code.google.com/a/apache-extras.org/p/phpmailer/wiki/UsefulTutorial

Hi

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

i can get the email when i use myemail@mydomain.com …but i cannot send an email to a user who entered useremail@hisemail.com

any ideas?