Creates a link to the webmail inbox based on email address.
$linkToInbox = new LinkToInbox();
$link = $linkToInbox->createLink('[email protected]', [
'subject' => 'Welcome to Acme Service',
'sender' => '[email protected]',
], true);
With custom text:
$linkToInbox = new LinkToInbox();
$link = $linkToInbox->createLink('[email protected]', [
'subject' => 'Welcome to Acme Service',
'sender' => '[email protected]',
], true, 'View in %s');
Require this package, with Composer, in the root directory of your project.
composer require bluebaytravel/link-to-inbox
LinkToInbox is licensed under The MIT License (MIT).