smtp.google.com ??? ?? ??? ??? ?? phpmailer? ????? ??? OAuth2.0 ??? ????? ?? ???? ????.
? ?? ??? ???? PhpMailer? Gmail XOAUTH2? ???? ??? ???? ???? ?? ???? ??? ???? ???? ??? ?? ????. ???? ??? ???? ??? ? ?????
??? ? HTML ??????
???get_oauth_token.php???
????? ?? ? ??? ?????
???? ??: ???? ?? ??: lib/MailService.php:31?? 'PhppotSMTP' ???? ?? ? ????. ?? ??: #0 index.php(7): PhppotMailService->sendContactMail(Array) #1 {main}? Out of line? ??????. lib/MailService.php
31?
???
??? ? MailService.php ?????
?????????? ??? ????. ?? ?? ?? ?:
????? ?? ??? ?????:
??? PHPMailer ???? SMTP ??? ??? ??????? ???? ??? ??? ???? ?? PhppotSMTP
???? ?? ?? ?? ???? ?????. ??? ???? ? ??? ??? ? ????:
??? ?? PHPMailer? ??? SMTP ???? ???? ???.
??? ? ?? ??? ?? ? ??? ? ??????. use PhppotConfig;
,但您已經(jīng)在 Phppot
命名空間中,因此將查找名為 PhppotPhppotConfig,可能不存在。如果該類已位于您聲明的命名空間中,則不需要為其使用
use
??? ????.