forked from PHPMailer/PHPMailer
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
1 changed file
with
1 addition
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -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('[email protected]', 'Mailer'); // 'Header' From address with optional sender name | ||
$mail->addAddress('[email protected]', 'Joe User'); //Add a recipient | ||
|
||
//Authentication | ||
$oauthTokenProvider = new SendOauth2B( | ||
['mail' => $mail, // PHPMailer instance | ||
|