php - How do I set up an inbound mail controller so users can post to unique email address? -
Tumbler (small form blogging platform) is a feature where you are given a unique email address (for example, F3sf16a @ tumblr.com) is that you can email text or images and it can automatically format it for you in a post (unless the sender's email address matches the email address of your account.)
I will set up something similar but completely presenting pictures As a method for the Ideally, when a user signs up on my site, I can create a unique address for them and store it in my DB (MySQL) if the user uses that email address to send an email to that address Email, then I want to move it to a PHP function that breaks it and uploads content to my account.
How would I go about doing something like this? Will this be anything at the DNS level, or the Apache level? Will it already need to create a "secure list" of all "real" email accounts on my domain to pass it? In addition, I am using Google Apps for email on this domain, will I need to make some sort of filter at the end?
Any ideas / suggestions would be great!
This is another quick and dirty way to work ...
Set up a "catch-all" address Your Domain In other words, set up your domain so that e-mails can be sent to a catch-all address (i.e. global@mydomain.com) at any address on the domain.
Then, on the PHP side ... set up a script that periodically checks for global e-mail in the global@mydomain.com box. Be sure to check the "To:" field so that you can identify which specific user was the purpose of the message.
Hope it helps!
Comments
Post a Comment