Sign in to follow this  
Servant of the Lord

[php] Receiving email and processing it

Recommended Posts

I'm making a newsletter thingy for my website, the forms are already setup, and I'm planning on storing the email addresses in the SQL database (bad idea?).

Then, when I'm ready to send one out, I want to just use my regular email address, but I'll send a single email to an address like 'send-newsletter@mydomain.com' (whitelisted to only accept email from me), 'send-newsletter@mydomain.com' will then send out the email to everyone on the list.

Any idea how I can go about doing that? I want everytime a email arrives in 'send-newsletter@mydomain.com' a php script gets activated with the content of the email, so I can read the subscriber emails from the SQL database, and forward the email to them (and also do some conditional processing on the content of the email received).

How can I know when email arrives, and trigger a PHP script with the content of the email?

(I actually want multiple newsletters, so users can subscribe to different ones based off of desire: "News Updates", "Beta testing", "Announcements and releases", etc...)

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this