【发布时间】:2015-09-15 06:19:15
【问题描述】:
我在 plesk 上有一个域,我想找出 smtp 地址和端口,以便在我的联系我们 Web 表单中使用它们 我使用过 webmail.domainname(也使用过 mail.domainname 和 smtp.domainname),但它不起作用 任何建议将不胜感激
【问题讨论】:
标签: smtp
我在 plesk 上有一个域,我想找出 smtp 地址和端口,以便在我的联系我们 Web 表单中使用它们 我使用过 webmail.domainname(也使用过 mail.domainname 和 smtp.domainname),但它不起作用 任何建议将不胜感激
【问题讨论】:
标签: smtp
您实际上并不需要使用它们,您可以尝试以下方法:
$mail_to_send_to = "name@anydomain.tld";
$your_feedbackmail = "from@yourdomain.tld";
$sendflag = $_REQUEST['sendflag'];
if ( $sendflag == "send" )
{
$email = $_REQUEST['email'] ;
$message = $_REQUEST['message'] ;
$headers = "From: $your_feedbackmail" . "\r\n" . "Reply-To: $email" . "\r\n" ;
$a = mail( $mail_to_send_to, "Feedback Form Results", $message, $headers );
if ($a)
{
print("Message was sent, you can send another one");
} else {
print("Message wasn't sent, please check that you have changed emails in the bottom");
}
}
【讨论】: