dongrou2920 2019-07-08 19:30
浏览 68

使用Amazon SES发送电子邮件时出错

My Email sending script was working fine for the last few years.

Few days back I saw following error message when I ran email sending script:

enter image description here

I am not getting why this is happening when I send email using Amazon SES, earlier it never happened.

Here is email sending script code :

    <?php
ob_start();
ini_set('memory_limit', '512M');
ECHO $document_root =   $_SERVER['DOCUMENT_ROOT'];;
require_once($document_root."wp-load.php");


function testnewcronsendmail()
{
    $mail = new PHPMailer;
    $mail->From = 'info@itsxxx.com'; // A Verified email.
    $mail->FromName = 'MYSON';

    //$mail->addAddress('ravikathait01@gmail.com');   
    $mail->addAddress('shishupal.shakya@itsxxx.com');

    $mail->isHTML(true);  

    $mail->Subject = 'test' ;
    $mail->Body    = 'test';
    var_dump($mail->ErrorInfo);
    var_dump($mail->send());
}

testnewcronsendmail();

?>

I did some learning and found that it is server related issue but I am not getting which thing should I correct at the server.

Anyone who faced such issue earlier, Pls suggest me the solution.

  • 写回答

0条回答 默认 最新

    报告相同问题?

    悬赏问题

    • ¥15 HFSS 中的 H 场图与 MATLAB 中绘制的 B1 场 部分对应不上
    • ¥15 如何在scanpy上做差异基因和通路富集?
    • ¥20 关于#硬件工程#的问题,请各位专家解答!
    • ¥15 关于#matlab#的问题:期望的系统闭环传递函数为G(s)=wn^2/s^2+2¢wn+wn^2阻尼系数¢=0.707,使系统具有较小的超调量
    • ¥15 FLUENT如何实现在堆积颗粒的上表面加载高斯热源
    • ¥30 截图中的mathematics程序转换成matlab
    • ¥15 动力学代码报错,维度不匹配
    • ¥15 Power query添加列问题
    • ¥50 Kubernetes&Fission&Eleasticsearch
    • ¥15 報錯:Person is not mapped,如何解決?