1. Go to this page and download the library: Download notifea/notifea-php 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/ */
notifea / notifea-php example snippets
$client = new NotifeaClient(
'https://api.notifea.com/v1',
'Bearer {authorization}'
);
$client = new NotifeaClient(
'https://api.notifea.com/v1',
'Bearer {authorization}'
);
$emailService = new EmailService($client);
$email = new Email();
$email->setFrom('[email protected]', 'New Address')
->setRecipient('[email protected]')
->setReplyTo('[email protected]')
->setSubject('My first email')
->setHtmlBody('<p>This is my first email</p>')
->setCc('[email protected]')
;
$sentEmail = $emailService->sendEmail($email);