帮助电子邮件表格 [英] help with email form
问题描述
有谁能告诉我为什么这段代码不起作用?
我把它保存为mail.php,并在网页上有一个表格
action =" mail.php"在HTML中。我之前已经开始工作了
我曾经做过的其他页面,我不知道为什么它不起作用
今天,我一定忘记了什么。感谢页面出现,
但邮件实际上没有发送。
<?php
$ to = gr ** @ fearofdolls.com;
$ subject =恐惧玩偶网络电子邮件;
$ email = $ _ POST [" email"] ;
$ message =" From Fear of Dolls web email \\\
";
$ message。=" message:"。$ message 。" \ n";
$ head ="来自: fe**@fearofdolls.com " ;;
邮件($ to,$ subject,"。$ message,$ head);
header(" Location:thankyou .html");
?>
to =" gr ** @ fearofdolls .com" ;;
subject ="恐惧玩偶网络电子邮件" ;;
email =
Can anyone tell me why this code won''t work?
I''ve saved it as mail.php, and have a form on a web page with
action="mail.php" in the html. I''ve gotten this to work before on
other pages I''ve worked on, I can''t figure out why it''s not working
today, I must have forgotten something. The thank you page comes up,
but the mail is not actually delivered.
<?php
$to="gr**@fearofdolls.com";
$subject="Fear of Dolls web email";
$email=$_POST["email"];
$message="From Fear of Dolls web email\n";
$message.="message: ".$message."\n";
$head="From: fe**@fearofdolls.com";
mail($to,$subject,"".$message,$head);
header("Location:thankyou.html");
?>
to="gr**@fearofdolls.com";
subject="Fear of Dolls web email";
email=
这篇关于帮助电子邮件表格的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!