我有一个PHPMailer脚本。它在我的Hostinger帐户上工作正常,但当我将它移动到我公司的FatCow服务器时,它停止工作。
非常感谢任何帮助!
代码是:
$email = new PHPMailer();
$email->IsSendmail();
$email->From = "stuart@ubrew.cc";
$email->FromName = "Stuart";
$email->Subject = "Subject...";
$email->Body = "text"; // BODY TEXT HERE
$email->AddAddress("$customeremail");
$email->AddAttachment($certificateName, 'GiftCertificate.pdf');
if (!$email->Send()) {
$message = $email->ErrorInfo;
mail('sewelly@gmail.com', 'MAILER ERROR', $message);
}