gmail php 发送邮件

1.https://justcode.ikeepstudying.com/2019/08/php-%E5%8F%91%E9%80%81%E9%82%AE%E4%BB%B6%EF%BC%9Aphpmailer-%E5%88%A9%E7%94%A8phpmailer%E5%8F%91%E9%80%81%E9%82%AE%E4%BB%B6-gmail-qq-%E9%82%AE%E7%AE%B1-yahoo%E9%82%AE%E7%AE%B1-yeah-net11-1and1/

2.两步验证若已激活,则取消这个激活

3.调低安全性

https://www.arclab.com/en/kb/email/how-to-enable-imap-pop3-smtp-gmail-account.html