1
votes

How to send email using gmail oAuth using PHP?

I'm using three-legged.php file and able to get inbox using IMAP (file is using this as default). But I want to use auth for sending mail. Not able to get it working. Can you please suggest.

Thanks, Prashant

3

3 Answers

1
votes

I think you mean SMTP Auth not OAuth, they are 2 entirely different things ;-)

See PHPMailer and the excellent example they give...

http://phpmailer.worxware.com/index.php?pg=examplebgmail

0
votes

Try PHPMailer. It's an excellent class.

Refer This