Hi I have a script (below) which is for a standard email form. However, I would like to be able to use it to email people instead, I know it's just a case of setting the $mail->AddAddress to the details of the user I'm mailing (set in a variable of $contact_email) but I can't seem to get it right.

$mail->IsSMTP(); // set mailer to use SMTP$mail->Host = "mydetails"; // specify main and backup server or localhost$mail->SMTPAuth = true; // turn on SMTP authentication$mail->Username = "mydetails"; // SMTP username$mail->Password = "mydetails"; // SMTP password//It should be same as that of the SMTP user