【问题标题】:Send Email PHP script cannot receive [closed]发送电子邮件 PHP 脚本无法接收 [关闭]
【发布时间】: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

【问题讨论】:

  • 没有错误信息?请在您的帖子中包含您是否收到错误消息以及如果您收到错误消息是什么
  • 现在它的工作。只需要重启

标签: php email send


【解决方案1】:

此代码正在运行。已经测试过了。确保您的网站 SMTP 配置设置设置正确。为此,您可以联系您的托管服务提供商。

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 2011-09-16
    • 2012-10-30
    • 1970-01-01
    • 1970-01-01
    • 2020-07-10
    • 2016-09-28
    • 1970-01-01
    • 2012-09-12
    相关资源
    最近更新 更多