我想在Yahoo Small Business Server中托管表单。我是否必须配置其他任何其他内容,然后在托管中进行编码?Webhosting的新手。我知道该程序效果很好,但是显示出错误,因为我认为没有正确的连接。
请提供帮助。
send_contact.php
<?php
// Contact subject
$subject ="$subject";
// Details
$message="$detail";
// Mail of sender
$mail_from="$customer_mail";
// From
$header="from: $name <$mail_from>";
// Enter your email address
$to ='';
$send_contact=mail($to,$subject,$message,$header);
// Check, if message sent to your email
// display message "We've received your information"
if($send_contact){
echo "We've received your contact information";
}
else {
echo "ERROR";
}
?>
yahoo要求您进行一些设置,然后才能通过PHP发送邮件。所有步骤均已详细介绍:
https://help.yahoo.com/kb/yahoo-web-hosting/sln20671.html?impressions=true