我无法让这段代码工作我知道如何使用PHP的邮件部分并且无法理解有什么问题。
##Send activation Email
$to = $_POST['email'];
$subject = " YOURWEBSITE.com Registration";
$message = "Welcome to our website!\r\rYou, or someone using your email address, has completed registration at YOURWEBSITE.com. You can complete registration by clicking the following link:\rhttp://www.YOURWEBSITE.com/verify.php?$activationKey\r\rIf this is an error, ignore this email and you will be removed from our mailing list.\r\rRegards,\ YOURWEBSITE.com Team";
$headers = 'From: noreply@close2.me';
mail($to, $subject, $message, $headers);
答案 0 :(得分:0)