From 1f974d0ab3ce24e81dfda168e2932ad290810acc Mon Sep 17 00:00:00 2001 From: Haci Murat Yaman Date: Mon, 3 Apr 2017 18:25:48 +0100 Subject: [PATCH] updated misleading comment on sample for smtp/google via xoauth2 #890 (#1019) * updated misleading comment on sample code for smtp.google.com via xoauth2 * undo change on gitignore --- examples/gmail_xoauth.phps | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/examples/gmail_xoauth.phps b/examples/gmail_xoauth.phps index d64483a4..2aec1814 100644 --- a/examples/gmail_xoauth.phps +++ b/examples/gmail_xoauth.phps @@ -43,8 +43,8 @@ $mail->SMTPAuth = true; //Set AuthType $mail->AuthType = 'XOAUTH2'; -//User Email to use for SMTP authentication - Use the same Email used in Google Developer Console -$mail->oauthUserEmail = "someone@gmail.com"; +//User Email to use for SMTP authentication - user who gave consent to our app +$mail->oauthUserEmail = "from@gmail.com"; //Obtained From Google Developer Console $mail->oauthClientId = "RANDOMCHARS-----duv1n2.apps.googleusercontent.com";