Jump to content
  • Advertisement
Sign in to follow this  
Servant of the Lord

[php] Receiving email and processing it

This topic is 2230 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

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
Sign in to follow this  

  • Advertisement

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

We are the game development community.

Whether you are an indie, hobbyist, AAA developer, or just trying to learn, GameDev.net is the place for you to learn, share, and connect with the games industry. Learn more About Us or sign up!

Sign me up!