帮助电子邮件表格 [英] help with email form

查看:111
本文介绍了帮助电子邮件表格的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

有谁能告诉我为什么这段代码不起作用?

我把它保存为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屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆