PHP code example of ojessecruz / resend-inbox-bundle
1. Go to this page and download the library: Download ojessecruz/resend-inbox-bundle 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/ */
use Jessecruz\ResendInboxBundle\Event\InboxEmailReceived;
use Symfony\Component\EventDispatcher\Attribute\AsEventListener;
#[AsEventListener]
final class NotifyTeamOfNewEmail
{
public function __invoke(InboxEmailReceived $event): void
{
$message = $event->message;
// $message->fromLabel(), $message->getSubject(), $message->getMailbox(),
// $message->getThread()->getId() for a link to resend_inbox_thread
}
}