[英]How to send email using gmail oAuth using PHP?
How to send email using gmail oAuth using PHP? 如何使用PHP使用gmail oAuth发送电子邮件?
I'm using three-legged.php file and able to get inbox using IMAP (file is using this as default). 我正在使用Three-legged.php文件,并且能够使用IMAP来获取收件箱(文件默认使用此文件)。 But I want to use auth for sending mail.
但是我想使用auth发送邮件。 Not able to get it working.
无法使其正常工作。 Can you please suggest.
你能建议一下吗?
Thanks, Prashant 谢谢,Prashant
I think you mean SMTP Auth not OAuth, they are 2 entirely different things ;-) 我认为您的意思是SMTP身份验证而不是OAuth,它们是2种完全不同的东西;-)
See PHPMailer and the excellent example they give... 请参阅PHPMailer及其提供的出色示例。
http://phpmailer.worxware.com/index.php?pg=examplebgmail http://phpmailer.worxware.com/index.php?pg=examplebgmail
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.