Newsletter
When you enable the newsletter, all subscribers to your newsletter will receive email notifications when new post are published.
1. Setup Mail
Set up mail configuration in .env
file. We have already explained how to set up .env
the environment file on this page.
2. Run Mail Service
- Locally or in VPS:
-
Run command
php artisan schedule:run
. - On Hosting:
- Add New Cron Job.
-
Select
Once Per Five Minutes(*/5****)
from common settings. -
Copy your general example into command input, then replace
path/to/cron/script
withartisan schedule:run
.
3. Enable Newsletter
- To enable newsletter, go to admin dashboard > settings then enable newsletter option.