最新赞助活动温馨提示:自愿赞助服务器费用,学生和没有工作的整站资源免费下载!
头像

PHP发送邮件有关问题:邮件已发送,返回Invalid address

来源:http://erdangjiade.com/topic/79607.html 你好,世界。 2017-10-04 21:03浏览(1)

PHP发送邮件问题:邮件已发送,返回Invalid address:
如图所示:
为什么会出现这样的情况?

------解决思路----------------------
public function AddAddress($address, $name = '') {
return $this->AddAnAddress('to', $address, $name);
}

private function AddAnAddress($kind, $address, $name = '') {
if (!preg_match('/^(to
------解决思路----------------------
cc
------解决思路----------------------
bcc
------解决思路----------------------
ReplyTo)$/', $kind)) {
echo 'Invalid recipient array: ' . kind;
return false;
}
$address = trim($address);
$name = trim(preg_replace('/[rn]+/', '', $name)); //Strip breaks and trim
if (!self::ValidateAddress($address)) {
$this->SetError($this->Lang('invalid_address').': '. $address);
if ($this->exceptions) {
throw new phpmailerException($this->Lang('invalid_address').': '.$address);
}
echo $this->Lang('invalid_address').': '.$address;
return false;

}
...

评论0
头像

友情提示:垃圾评论一律封号 加我微信:826096331拉你进VIP群学习群

1 2