Re: Update site through email

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



How i'd do it is not simple, i'm sure there is an easier method but here goes for mine.

First you have to setup an inbox that you can read, it can be POP3 or IMAP, as long as your PHP script can read it it's fine.

Second, create a script that can actually connect to that inbox and read for a new message periodically. You can use a CRONJOB or a Scheduled Task if it's available, else, you'll have to check the mailbox from time to time when your page launches from a web browser (Try not to do it all the time or your page will suffer from this process if it is launched all the time).

That script will have to read the emails in the inbox, finds the appropriate email and stores the content the way you want, database or file, your choice.

Then, your web page will have to read from that stored source of your choice and "echo" the content at it's right place.

As you can see, it CAN be done, it's just a strange way of doing it.

Furthermore i see problems to that. You can probably get very easily hacked using this method. Its easy to read the incoming data in the server, find the email address used to update the content and then send a mail yourself. There is nothing you can do to stop that except encrypt your email using SSL... But thats a bit hardcore and there are much simpler ways than using SSL encrypted email to update a page ;)

Math

Rodrigo de Oliveira Costa wrote:
Hy guys I'd like to know if there is a way to update a site through
sending an email. Something like this, you send an email and the body
of the email substitutes a text you use in your site. Igreat apreciate
any help since I couldn't find anything on this topic.

Thanks,
doRodrigo

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux