Welcome
Edit onThis package allows you to send out email campaigns to a list of subscribers effortlessly. It also provides a UI to manage campaigns, email lists and subscribers.
You are currently looking at the documentation of v3 which requires Laravel 8. If you are on Laravel 7, take a look at the docs of Mailcoach v2.
Let’s take a quick look at how to use the package. First, create an email list:
$emailList = EmailList::create(['name' => 'newsletter subscribers']);
Next, we subscribe people to a list. There's also support for double opt-in subscriptions.
$emailList->subscribe('john@example.com');
$emailList->subscribe('paul@example.com');
You can send an email to all those subscribed to the list.
Campaign::create()
->subject('test')
->content($html)
->trackOpens()
->trackClicks()
->sendTo($emailList);
After a campaign is sent, interesting statistics are made available.