I attempt sending email through a modified MailClient implementation and encounter a RuntimeException: ‘Puli Factory is not available’. Below is a code snippet illustrating my approach.
require 'lib/bootstrap.php';
use MailDispatcher
otifyService;
$service = new notifyService('new-api-key');
$senderDomain = 'exampledomain';
$response = $service->sendMail($senderDomain, [
'sender' => 'Alert <[email protected]>',
'receiver' => 'Alice <[email protected]>',
'subject' => 'Test Notification',
'message' => 'This is a sample email body.'
]);