From 10f8e5a7a9ef93da5a4d8d6a71adcd8d20c90932 Mon Sep 17 00:00:00 2001 From: decomplexity <65123375+decomplexity@users.noreply.github.com> Date: Thu, 4 Jul 2024 16:36:48 +0100 Subject: [PATCH] Additional operands for GoogleAPI for .json management V4.1.0 of the SendOauth2 wrapper introduces two new optional operands for the invocation of both the standard PHPMailer email application and for the complete replacement of a PHPMailer application by the wrapper SendOauth2A front-end. These operands allow the developer to specify a name for the .json credentials file and/or whether the wrapper should dynamically build this .json file or use an already-built one, created either by Google (its standard download) or by the developer. --- examples/sendoauth2.phps | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/examples/sendoauth2.phps b/examples/sendoauth2.phps index 97ed0cdf..0fca0b5c 100644 --- a/examples/sendoauth2.phps +++ b/examples/sendoauth2.phps @@ -70,10 +70,16 @@ try { 'tenant' => 'long string', // MSFT tenant GUID. Null for Gmail 'hostedDomain' => 'mydomain.com', // Any Google (and optional). Null for MSFT + 'projectID' => 'string', // GoogleAPI only. Else null 'serviceAccountName' => 'string', // GoogleAPI service account only. Else null 'impersonate' => 'you@mydomain.com', // Google API service account only. Else null - // (Google Wspace email adddress, not @gmail) + // default to 'mailSMTPAddress', must be + // a Google Wspace email adddress, not @gmail + 'gmailXoauth2Credentials' => 'your credentials.json', // File name - defaults to: + // gmail-xoauth2-credentials.json + 'writeGmailCredentialsFile' => 'yes' or 'no', // Defaults to 'yes'; meaning the + // credentials json is dynamically created ] );