Creates a link to the webmail inbox based on email address.
$linkToInbox = new LinkToInbox();
$link = $linkToInbox->createLink('test@live.com', [
'subject' => 'Welcome to Acme Service',
'sender' => 'hello@acme-service.com',
], true);
With custom text:
$linkToInbox = new LinkToInbox();
$link = $linkToInbox->createLink('test@live.com', [
'subject' => 'Welcome to Acme Service',
'sender' => 'hello@acme-service.com',
], 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).