Jump to content

  • Log In with Google      Sign In   
  • Create Account

[php] Receiving email and processing it


Old topic!
Guest, the last post of this topic is over 60 days old and at this point you may not reply in this topic. If you wish to continue this conversation start a new topic.

  • You cannot reply to this topic
No replies to this topic

#1 Servant of the Lord   Crossbones+   -  Reputation: 20998

Like
0Likes
Like

Posted 14 September 2012 - 11:13 AM

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...)
It's perfectly fine to abbreviate my username to 'Servant' rather than copy+pasting it all the time.
All glory be to the Man at the right hand... On David's throne the King will reign, and the Government will rest upon His shoulders. All the earth will see the salvation of God.
Of Stranger Flames - [indie turn-based rpg set in a para-historical French colony] | Indie RPG development journal

[Fly with me on Twitter] [Google+] [My broken website]

[Need web hosting? I personally like A Small Orange]


Sponsor:



Old topic!
Guest, the last post of this topic is over 60 days old and at this point you may not reply in this topic. If you wish to continue this conversation start a new topic.



PARTNERS