- If you prefer to manage your email subscribers under Laraship platform, then the Newsletter module is your ready to go solution, create an unlimited mailing list and assign subscribers into by adding them manually or using smart upload wizard to attach them to one or multiple lists.
-
Schedule your campaigns, create an email template, assign it to one or multiple mailing listing, you can even assign it to individual visitors.
-
then you can check an online statistic about the mailed listing, not only on how many got sent/opened but also about visitor statistics like Browser, device, country.
-
an Unsubscribe URL will be attached automatically to the email body through newsletter subscribers and click and unsubscribe.
-
Emails are sent using Queue to avoid any performance issues and ensure best deliverable method.
-
Make sure your email / SMTP settings are correct under. env file
MAIL_DRIVER=log
MAIL_HOST=smtp.mailtrap.io
MAIL_PORT=2525
MAIL_USERNAME=null
MAIL_PASSWORD=null
MAIL_ENCRYPTION=null
MAIL_FROM_ADDRESS=laraship@corals.io
MAIL_FROM_NAME="Laraship"
- Emails are running synchronously if you’re running large bulk emails its recommend to setup laravel queue Adding Table for Queues Let’s now add the table for queued jobs and failed the job. For that, run the following Artisan commands:
php artisan queue:table
php artisan queue:failed-table
- Migrating the Tables Now that I have all the required tables, let’s now migrate it using the following Artisan command:
php artisan migrate
Once the command is completed, all the tables will be generated.
- Updating the .env File update the .env file with the mail and the queue driver information.
QUEUE_DRIVER=database
You can install the package via composer:
composer require corals/newsletter
vendor/bin/phpunit vendor/corals/newsletter/tests
If you faced any issue you can check our questions center, and you can post your question from the following link Questions & Answers
Looking for a professional team to build your success and start driving your business forward. Laraship team ready to start with you Hire Us