0
0
mirror of https://github.com/PHPMailer/PHPMailer.git synced 2024-09-19 17:42:14 +02:00
This commit is contained in:
Marcus Bointon 2023-11-25 23:23:18 +01:00
parent d327514f47
commit 3190bef442
No known key found for this signature in database
GPG Key ID: DE31CD6EB646AA24

View File

@ -20,7 +20,6 @@
//Import SendOauth2B class into the global namespace
use decomplexity\SendOauth2\SendOauth2B;
//Import PHPMailer classes into the global namespace
//These must be at the top of your script, not inside a function
use PHPMailer\PHPMailer\PHPMailer;
@ -47,7 +46,7 @@ try {
//Sender and recipients
$mail->setFrom('from@example.com', 'Mailer'); // 'Header' From address with optional sender name
$mail->addAddress('joe@example.net', 'Joe User'); //Add a recipient
//Authentication
$oauthTokenProvider = new SendOauth2B(
['mail' => $mail, // PHPMailer instance