phpmailer报 You must provide at least one recipient email address.解决办法

Posted 371502685

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了phpmailer报 You must provide at least one recipient email address.解决办法相关的知识,希望对你有一定的参考价值。

看了下源代码是下面这个地方返回false导致的:

public static function ValidateAddress($address) {
return preg_match(‘/^(?!(?>(?1)”?(?>\\\[ -~]|[^"])”?(?1)){255,})(?!(?>(?1)”?(?>\\\[ -~]|[^"])”?(?1)){65,}@)((?>(?>(?>((?>(?>(?>\x0D\x0A)?[     ])+|(?>[     ]*\x0D\x0A)?[     ]+)?)(\((?>(?2)(?>[\x01-\x08\x0B\x0C\x0E-\‘*-\[\]-\x7F]|\\\[\x00-\x7F]|(?3)))*(?2)\)))+(?2))|(?2))?)([!#-\‘*+\/-9=?^-~-]+|”(?>(?2)(?>[\x01-\x08\x0B\x0C\x0E-!#-\[\]-\x7F]|\\\[\x00-\x7F]))*(?2)”)(?>(?1)\.(?1)(?4))*(?1)@(?!(?1)[a-z0-9-]{64,})(?1)(?>([a-z0-9](?>[a-z0-9-]*[a-z0-9])?)(?>(?1)\.(?!(?1)[a-z0-9-]{64,})(?1)(?5)){0,126}|\[(?:(?>IPv6:(?>([a-f0-9]{1,4})(?>:(?6)){7}|(?!(?:.*[a-f0-9][:\]]){7,})((?6)(?>:(?6)){0,5})?::(?7)?))|(?>(?>IPv6:(?>(?6)(?>:(?6)){5}:|(?!(?:.*[a-f0-9]:){5,})(?8)?::(?>((?6)(?>:(?6)){0,3}):)?))?(25[0-5]|2[0-4][0-9]|1[0-9]{2}|[1-9]?[0-9])(?>\.(?9)){3}))\])(?1)$/isD’, $address);
}

因为是内部程序发送邮件,无须较验,果断将此判断直接返回true,问题解决,记下来备忘哈。



以上是关于phpmailer报 You must provide at least one recipient email address.解决办法的主要内容,如果未能解决你的问题,请参考以下文章

mysql 5.7密码报错 ERROR 1820 (HY000): You must reset your password using ALTER USER statement before exe

FreeSWITCH安装报错“You must install libyuv-dev to build mod_fsv”的解决方案

FlinkFlink flink-runtime.version.properties generated correctly. You MUST run mvn generate-source

mysql5.7初始化密码报错 ERROR 1820 (HY000): You must reset your password using ALTER USER statement

You must install 'hg' on your build machine

Tensorflow报错:InvalidArgumentError: You must feed a value for placeholder tensor 'input_y' wi