当使用php邮件从php邮件获取smtp错误

时间:2017-09-27 06:52:51

标签: php

从php邮件发送时出现以下错误。 并在邮件报告中的专用服务器面板上进行检查。

SMTP error from remote mail server after end of data: 552 5.2.0 x65edFfCOsf8z :: ded :: Message rejected for spam or virus content :: Please include this entire message when contacting support :: v=2.1 cv=I8bFPIUg c=1 sm=1 tr=0 p=MTd1msIjAAAA:8 a=sU2ElePL1fh+zoELtCh9/Q==:117 a=L9H7d07YOLsA:10 a=9cW_t1CCXrUA:10 a=s5jvgZ67dGcA:10 a=8nJEP1OIZ-IA:10 a=AmzWBoANEAQA:10 a=lpJG3BmS9rEA:10 a=2JCJgTwv5E4A:10 a=m-bnlgmZlx0A:10 a=EnUgvIxqE1YA:10 a=2oKOZG5bAAAA:8 a=ZmejEW-fsLYoZ2jFqGIA:9 a=oJI5IDrX3K-v2epM:21 a=R-9hM1EI3jsEmhP7:21 a=thd3Pqr6jx6EN8yW:21 a=wPNLvfGTeEIA:10 a=_W_S_7VecoQA:10 a=3C1QSb0jjt0A:10 a=kcEQE9vDxJwA:10 a=ngyOktuYw20A:10 a=3UfFLR44nQwA:10 a=has7Mf9E4wwA:10 a=hOgrCEPG9TA63oEbKpNN:22 a=B7iUcy2KOd5iJp25KyqN:22 :: 100.00

任何人都可以说这里出了什么问题。

$to="$email1";
$subject="$subject1";
$from = 'Pediatric Practice <mail@blkpediatricpractice.com>';
$message1 .= 'test';
$headers = "From: " .($from) . "\r\n";
$headers .= "Reply-To: ".($from) . "\r\n";
$headers .= "Return-Path: ".($from) . "\r\n";;
$headers .= "MIME-Version: 1.0\r\n";
$headers .= "Content-Type: text/html; charset=ISO-8859-1\r\n";
$headers .= "X-Priority: 3\r\n";
$headers .= "X-Mailer: PHP". phpversion() ."\r\n";

1 个答案:

答案 0 :(得分:0)

查看以下链接并根据它配置您的php文件。

https://www.codexworld.com/how-to-send-email-from-localhost-in-php/

希望它有所帮助!