我使用 php 表单从我的网站发送联系电子邮件。代码没问题,在一个网站上运行良好,但在第二个网站上不工作。两个网站都有不同的服务器空间和托管。页面上没有显示任何错误
代码如下:
<?php
$name = $_REQUEST['rohini_name'] ;
$contact = $_REQUEST['rohini_contact'] ;
$email = $_REQUEST['rohini_email'] ;
$remark = $_REQUEST['rohini_message'] ;
$MailTxt = "Following are Details" . "\r\n" .
"============================" . "\r\n" .
"Name : " . $name . "\r\n" .
"Mobile : " . $contact . "\r\n" .
"Email : " . $email . "\r\n" .
“评论 : ” 。$备注。"\r\n";
$to = "ballu9868@gmail.com";
$subject = "Enquiry from rohiniseeds.com";
$headers = "From: www.rohiniseeds.com";
mail($to,$subject,$MailTxt,$headers);
?>