标签:问题 ide 解决 返回 strong 程序 add str reg
看了下源代码是下面这个地方返回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.解决办法
标签:问题 ide 解决 返回 strong 程序 add str reg
原文地址:http://www.cnblogs.com/112ba/p/6220433.html