Install the package
composer require youremailapi/php-sdk
Start using it
How to send an email:
use Youremailapi\PhpSdk\DataTransferObjects\Email\SendEmailDTO;
use Youremailapi\PhpSdk\Email\SendEmail;
$sendEmail = new SendEmail('<YOUR API KEY>');
$sendEmail->send(
(new SendEmailDTO())
->setTo('contact@youremailapi.com')
->setVariables([
'%example%' => 'Some text here'
])
->setSubject('Some subject')
->setSmtpAccount('<YOUR SMTP ACCOUNT TOKEN>')
->setTemplate('<YOUR TEMPLATE TOKEN>')
);