我试图创建一个简单的php电子邮件表单,将提交的内容发送到指定的地址,但是我试图解决的问题是电子邮件正在发送的地址从 - 目前,它从[email protected]发送,但我希望能够将其更改为简单的[email protected]或其他内容。以php的形式将发件人的电子邮件地址更改为收件人
<?php
$message = $_POST['message'];
$formcontent="$message";
$recipient = "[email protected]";
$subject = "question";
mail($recipient, $subject, $formcontent, $header, '[email protected]') or die("Error!");
header("Location: webpage_user_is_redirected_to.html");
?>
不使用邮件()使用第三方库[phpmailer](http://phpmailer.worxware.com/) – 2012-09-30 20:47:15