I am working on a Mailing-List system combined with an online Forum. Mail Input (Via Postfix forward to Script) works and after receiving an E-Mail the script should process it and send it out.
Processing and everything works, sending too.
I Have a list (list@example.com) that is accessible for few adresses (eg user1@ user2@ user3@example.com and user1@ user2@ user3@otherdomain.com)
If one user sends a mail to the list it is delivered t oa php script, that does the processing (Checking if user has rights, adding some Information to the Message eg. sign out link) and sends the mail out to the list-recipients.
But I want to have a behaviour like this for the from the script Outgoing mail:
- From is original Sender
- To in the mail is the Mailing list (list@example.com)[X]
- Reply To is the mailing list
- Subject is Modified
- Body is modified
- Real To is the receiver of the list.
Here's the problem: [X] So I want to send out a Mail, that just delivers to bcc and not to to, but has a to address.
I am Using swift-mailer in Codeigniter.
If I'll send it to the list itself, I would create a infinite loop, because all mails to the list