Forum Moderators: coopster

Message Too Old, No Replies

php mailing list system

looking for best approach to forward emails but keep mail intact

         

mackenzie vb

11:31 am on Sep 3, 2005 (gmt 0)



This is what I'd like to do:
I create different mailing lists and assign an email address to every list. In this example mailing list nr. 1 gets mailinglist01@mydomain.com.
The user sends an email to 'mailinglist01@mydomain.com'. My MTA sends this to a php script (or the script listens for new mail 'cause I don't know if mail piping is allowed by my hosting company). The PHP script will then look up the email address (mailinglist01) in a mysql database, searches for all subscribers to the mailing list and forwards the mail to each one.
Now I've been looking on the net for methods and the IMAP functions of PHP so far do the job for plain text mails. Ofcourse I would like the user to be able to send any kind of email (HTML mails with attachments for instance) and the email should stay intact, as if it was sent directly from the user.
Is there a script that does this? Or what would be the best approach? My main reason is because I would like it to be as easy as possible for the user. Because the user is used to his own mail client and providing a web based system doesn't guarantee nice output. I'd have to deal with upload issues, copy/paste from word, user's limited HTML skills...

Thanks for all the input.
Mackenzie

jatar_k

7:22 pm on Sep 6, 2005 (gmt 0)

WebmasterWorld Administrator 10+ Year Member



Welcome to WebmasterWorld mackenzie_vb,

The only thing that really comes to mind is something like [procmail.org...] mainly because you mentioned handling email reciept automatically. I am not sure how easy or hard it would be but procmail can definitely handle the incoming emails on those addresses and then handle them accordingly.

I would have a look through the docs and see if it will satisfy your needs.