dongzi1397 2017-02-07 05:25
浏览 20

电子邮件不发送到一个特定域

We are using amazon server and I am using PHP, Codeigniter framework.

Below is the script which I am using for sending emails. It is working when I send an email to Gmail domain email id (abc@gmail.com) but it is not working on some specific domain name email id (abc@xyzdmainname.com).

  public function sendMail() {
  $to = 'abc@xyzdomain.com';
  $fromEmail = 'pqr@gmail.com';
  $fromName = 'pqr';
  $subject = 'Testing';
  $message = 'Testing of email';
  $newFile = ''
  $this->CI->load->library('email');
  $this->CI->email->mailtype = 'html';
  $this->CI->email->from($fromEmail, $fromName);
  $this->CI->email->to($to);
  $this->CI->email->subject($subject);
  $this->CI->email->message($message);
  if (!empty($newFile)) {
  $this->CI->email->attach($newFile);
  }
  $result = $this->CI->email->send();
  $message = '';
  if ($result) {
  return 1;
  } else {
  echo $this->CI->email->print_debugger();
  return 0;
  };

Please let me help what-what case may be here for fail sending email on a particular domain.

and How I can overcome this issue.

  • 写回答

0条回答 默认 最新

    报告相同问题?

    悬赏问题

    • ¥15 无线电能传输系统MATLAB仿真问题
    • ¥50 如何用脚本实现输入法的热键设置
    • ¥20 我想使用一些网络协议或者部分协议也行,主要想实现类似于traceroute的一定步长内的路由拓扑功能
    • ¥30 深度学习,前后端连接
    • ¥15 孟德尔随机化结果不一致
    • ¥15 apm2.8飞控罗盘bad health,加速度计校准失败
    • ¥15 求解O-S方程的特征值问题给出边界层布拉休斯平行流的中性曲线
    • ¥15 谁有desed数据集呀
    • ¥20 手写数字识别运行c仿真时,程序报错错误代码sim211-100
    • ¥15 关于#hadoop#的问题