PHPMailer脚本工作Hostinger不在fatcow上

时间:2015-12-17 17:54:09

标签: php email phpmailer

我有一个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);
}

0 个答案:

没有答案