1. Go to this page and download the library: Download decomplexity/sendoauth2 library. Choose the download type require.
2. Extract the ZIP file and open the index.php.
3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
decomplexity / sendoauth2 example snippets
new SendOauth2A ($mailStatus,[
'mailTo' => ['[email protected]'],
'mailSubject' => 'Deer dear!',
'mailText'=>'Lovely photo you sent. Tnx',
'mailAuthSet' => '1'
]);
namespace decomplexity\SendOauth2;
SendOauth2A has two arguments:
$mailStatus
$options - an array of the options described below
So instantiation looks something like:
new SendOauth2A ($mailStatus,$options)
It is preceded by:
namespace decomplexity\SendOauth2;
"Sending failed. Error message: " . $mailStatus);
}