gpt4 book ai didi

PHP 邮件不发送但没有错误

转载 作者:行者123 更新时间:2023-12-02 03:46:04 24 4
gpt4 key购买 nike

<分区>

所以我有一个发送电子邮件的脚本,它可以在我的 VPS 上的一个域上运行,但不能在另一个域上运行,这非常令人困惑!我已经检查了所有 smtp 详细信息...等。并且看不出有任何理由。脚本运行就好像它是成功的,没有抛出任何错误,变量都已就位。

如果有人有任何想法,我们将不胜感激!

<?php
$email=$_POST['email'];
$name=$_POST['name'];
$business=$_POST['business'];
$town=$_POST['town'];
$phone=$_POST['phone'];
$rpo=str_replace("rpo", "RPO",$_POST['rpo']);
$retained=str_replace("retained", "Retained",$_POST['retained']);
$ats=str_replace("ats", "ATS",$_POST['ats']);

$interest=$rpo . ' ' . $retained . ' ' . $ats;
$interest=str_replace('','<br>',$interest);

$msg = "You've received a new enquiry from $name at $business<br>
They are based in $town and interested in:<br>
$interest<br>
You can contact them on:<br>
<b>Phone: </b>$phone<br>
<b>Email: </b>$email<br>
This is an automatically generated email from the company website generated from http://example.com";

$msg = wordwrap($msg,70);

mail('example@example.com','New Enquiry',$msg);

header("location:http://example.com");
?>

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com