Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.

anishthecoder's avatar

Integrating a mass email system into a Laravel web-app with existing user-management

Can anyone provide information on setting up a newsletter emailing system within an existing Laravel website?

I'm taking over the development and maintenance of a web-application built using Laravel 5. The current application includes a user management system where users can sign up, be assigned roles by our admins, and get access to different aspects of application and website depending on the permissions given to them.

What we now need is a way to send mass emails / newsletters to some subset of these users (and potentially other email address that have subscribed to our website but haven't registered as users). This needs to include a front-end where registered users (with the appropriate permissions) can create the emails / newsletters, manage their subscriptions to the different mailing lists, and some kind of administrative dashboard.

Would anyone be able to point me in the right direction to either

  1. Existing solutions that can be integrated into an existing user-management system, or
  2. Commercial services that can develop such systems

Thanks!

0 likes
4 replies
bobbybouwmann's avatar

Well the mailing list part shouldn't be that hard. You just need to get the correct users and assign them to a list in your database. A many-to-many relationship should do.

However the email/newsletter creation is probably the biggest part of this all. You can for example use a tool like https://github.com/voidlabs/mosaico or https://github.com/unlayer/react-email-editor. You just need to save that in the database and you're good to go for sending emails!

However tools like MailChimp are designed for this. You might as well give your users an account here. You can also use their API to build templates. Note that you need to build your own frontend for this: https://developer.mailchimp.com/documentation/mailchimp/reference/templates/

For sending emails in general I would highly recommend to use a queue ;)

1 like
martinbean's avatar

@anishthecoder I’d highly recommend using an off-the-shelf service like MailChimp or Campaign Monitor.

It’ll save you development time using something that’s already had years of development behind, has a team working on it, and already does the things you need.

2 likes
anishthecoder's avatar

Thanks @bobbybouwmann and @martinbean ! We have a system that does use the queue right now, but we're not sure if it'll scale well because of our specific hosting situation.

I am considering the idea of using MailChimp, and I've seen Laravel packages that easily enable interactions with MailChimp's API (e.g. https://github.com/spatie/laravel-newsletter, https://github.com/nztim/mailchimp, etc.). First, does anyone have experience using them, and if so, what was your experience with them? Are solutions like these reliable? How well do they scale? How many subscribers, lists, newsletters, etc. have you been able to use them with?

Second, we won't be able to generate custom user accounts for "admins" on our web-app as the people with those roles will change frequently. I see that MailChimp has an API to allow OAuth2 authentication. Would I be correct in understanding that I could use this mechanism to take users authenticated on our web-app with certain roles and allow them to access MailChimp?

Finally, implementing this myself will probably take longer than I have time for at the moment. Are there individuals or companies that anyone knows of that would be willing to implement this kind of custom-integration service?

felloz's avatar

Hello do you have any tutorial how to send the html from mosaico to database with Laravel?

Please or to participate in this conversation.