Skip to content

Commit

Permalink
updated misleading comment on sample for smtp/google via xoauth2 PHPM…
Browse files Browse the repository at this point in the history
…ailer#890 (PHPMailer#1019)

* updated misleading comment on sample code for smtp.google.com via xoauth2

* undo change on gitignore
  • Loading branch information
muratyaman authored and Synchro committed Apr 3, 2017
1 parent 7115df4 commit 1f974d0
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions examples/gmail_xoauth.phps
Original file line number Diff line number Diff line change
Expand Up @@ -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";
Expand Down

0 comments on commit 1f974d0

Please sign in to comment.