Home >Backend Development >PHP Tutorial >屏蔽phpmailer错误

屏蔽phpmailer错误

WBOY
WBOYOriginal
2016-06-23 13:47:031054browse

类似于SMTP Error: The following recipients failed

如何屏蔽


回复讨论(解决方案)

提示错误的原因是收件人地址错误。

我就就是想屏蔽收件人地址错误这类提示(收件人地址不存在)

总的来说就是如何屏蔽phpmailer的错误提示

那句话 前面 加@ 看管用么

用try catch

如果有错误,就不执行,跳过执行。

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn