lundalogik / laravel-newsletter-driver
Laravel Lime Newsletter Mail Driver
Installs: 4 354
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 2
Forks: 0
Open Issues: 1
Requires
- php: ^8.1|^8.2|^8.3
- guzzlehttp/guzzle: ^7.0
- illuminate/contracts: ^10.0
- symfony/mailer: ^6.2
Requires (Dev)
- orchestra/testbench: ^8.0
- phpstan/phpstan: ^1.8
- phpunit/phpunit: ^10.0
- spatie/temporary-directory: ^2.2
This package is auto-updated.
Last update: 2025-01-08 11:53:51 UTC
README
What is Lime Newsletter?
Lime Newsletter is a Lime CRM add-on for creating and sending email campaigns and newsletters. Benefits include: personalization with CRM data, email templates, dynamic content, and subscriber management.
Installation
Supports only Laravel > 7.0.
Add the following to your composer.json
composer require lundalogik/laravel-newsletter-driver
Configuration
Change default mail driver and add new variables to your .env file:
MAIL_MAILER=newsletter LIME_NEWSLETTER_API_KEY = <YOUR_NEWSLETTER_API_KEY> LIME_NEWSLETTER_USER_EMAIL = <YOUR_NEWSLETTER_USER_EMAIL> LIME_NEWSLETTER_ACCOUNT = <YOUR_NEWSLETTER_ACCOUNT_NAME>
Add section to the config/services.php file:
'newsletter' => [ 'api_key' => env('LIME_NEWSLETTER_API_KEY'), 'user_email' => env('LIME_NEWSLETTER_USER_EMAIL'), 'account' => env('LIME_NEWSLETTER_ACCOUNT'), 'base_url' => env('LIME_NEWSLETTER_BASE_URL', 'https://qa.bwz.se/bedrock/'), ],
You also need to specify new available mail driver in config/mail.php:
'mailers' => [ ... 'newsletter' => [ 'transport' => 'newsletter', ], ],