PRodgers4284
02-28-2008, 07:21 PM
I have managed to get phpmailer working and its sends email fine, but i am trying to use $email for the add address. The $email is the email field in a registration form i am using and i want the email to recognize the address that a user enter at registration, the email is then sent to the address the user has entered. Can anyone help?
I am using the following code:
require_once('class.phpgmailer.php');
$mail = new PHPGMailer();
$mail->FromName = '********';
$mail->AddAddress($email);
$mail->Subject = 'This is a test email;
$mail->Body = 'This is a test email';
$mail->Send();
I am using the following code:
require_once('class.phpgmailer.php');
$mail = new PHPGMailer();
$mail->FromName = '********';
$mail->AddAddress($email);
$mail->Subject = 'This is a test email;
$mail->Body = 'This is a test email';
$mail->Send();