Here is an example below
Sample: Getting mails responses
<?php
$mailer = new Mailer;
$mailer->authorize(true);
$mailer->server('mail.server');
$mailer->setup([
'client' => ['name' => 'Foo']
]);
$mailer->sendmail('mail.template');
if($mail->sent('online') || $mail->sent('offline')) {
var_dump($mailer->response()); // returns: messages
}
In the example above,
response() method returns the response of the mail.