【发布时间】:2013-09-16 21:35:10
【问题描述】:
帮助!
我想用 php 发送电子邮件 这是脚本
<?php
if (isset($_POST['email']))
//if "email" is filled out, send email
{
//send email
$email = $_POST['email'] ;
$subject = $_POST['subject'] ;
$message = $_POST['message'] ;
mail("faimaknyus@gmail.com", $subject,
$message, "From:" . $email);
echo "Thank you for using our mail form";
}
else
//if "email" is not filled out, display the form
{
echo "<form method='post' action='email.php'>
Email: <input name='email' type='text'><br>
Subject: <input name='subject' type='text'><br>
Message:<br>
<textarea name='message' rows='15' cols='40'>
</textarea><br>
<input type='submit'>
</form>";
}
?>
当我发送消息时,我没有收到指向我的实验的消息链接 --> http://goo.gl/2bDcLL
【问题讨论】:
-
没有错误信息?请在您的帖子中包含您是否收到错误消息以及如果您收到错误消息是什么
-
现在它的工作。只需要重启