isSMTP(); $mail->SMTPDebug = 0; $mail->Host = 'mailout.php.net'; $mail->Port = 25; $mail->setFrom($_POST['email']); $mail->addAddress("{$_POST['maillist']}-{$_POST['request']}-$sub@lists.php.net"); $mail->Subject = "PHP Mailing List Website Subscription"; $mail->Body = "This was a request generated from the form at {$_POST['referer']} by {$_POST['remoteip']}"; $mail_sent = $mail->send(); if (!$mail_sent) { die("Mailer Error: " . $mail->ErrorInfo); }