Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Define mailinglist using PHP

Tags:

php

email

I need some suggestions how to deal with the following situation. I'm building a website with a userbase in multiple groups. i would like to create a mailinglist with a emailadress like:

[email protected] 

The mailaddresses reflect the groups in my application, messages are forrwarded to the members of the group.

A new group or member in the application should update the mailnglist settings. Any idea witch applications or services would help me to accomplish this? I'm considering Google Apps, but i believe in that case i can only use mailadresses bound to a Google account.

like image 223
Arnoud Kooi Avatar asked Mar 20 '26 20:03

Arnoud Kooi


1 Answers

If you look at this answer: How do I receive email and process it in a web application you can see where to go to get started on getting the email into your PHP application. (You will of course need to have a mailbox(es) for the email address(es) / mx forwarding to such).

When emails are found you can then do a lookup in the DB for all addresses in the relevant group for the to address of the email if valid. Then you can use PHPMailer or similar to actually send mails.