我使用以下脚本使用 PHP 发送邮件。现在我的要求是发送一封带有唯一链接的确认电子邮件以供点击。这将验证电子邮件 ID
<?php
$to = "user@gmail.com";
$subject = "Test mail";
$message = "Hello! This is a simple email message.";
$from = "fromuser@gmail.com";
$headers = "From:" . $from;
mail($to,$subject,$message,$headers);
echo "Mail Sent.";
?>