我有一个简单的表格。基本上尝试通过电子邮件复制共享认为这已经足够了。我想将这封电子邮件的副本发送到 $email 变量(是的,可能不需要带斜杠),有什么想法吗?通过谷歌看到一堆帖子,但无法弄清楚;
<?php
$EmailFrom = "admin@test.com";
$EmailTo = "admin@test.com";
$Subject = "Check out this video.";
$email = !empty($_POST['email']) ? Trim(stripslashes($_POST['email'])) : false;
$Body = "Take a look at this; youtubelink...";
$success = mail($EmailTo, $Subject, $Body, "From: <$EmailFrom>");
header('Location: /#');
?>