Topic awaiting preservation: Post to php page via email |
|
---|---|
Author | Thread |
Paranoid (IV) Inmate From: under your rug, |
posted 10-12-2003 10:19
I'm sure you all have seen how yahoo groups and such have little chat pages that you can post to by sending an email to a specific address right? |
Maniac (V) Mad Scientist From: :morF |
posted 10-12-2003 10:55
well, PHP does have functions for retrieving mail, you could do a script as a cron job, have it retrieve the contents of the site's inbox once an hour, every couple of hours, once a day, whatever...examine the headers to get the sender's email address, match that to the records to put the correct name on the post and use the body of the email as the post text...just let me go look up the correct functions to do this with. |
Paranoid (IV) Mad Scientist with Finglongers From: Germany |
posted 10-12-2003 16:43
well, there is the imap and pop3 extension for php, |
Paranoid (IV) Inmate From: New Jersey, USA |
posted 10-13-2003 02:41
If the host has Procmail installed you could use it to filter any mail sent to your *chat* address to a script that would read the mail and then post it to your web page. I did something like this once for somebody that wanted to be able to admin a certain aspect of their site from an email on their cell phone. |
Paranoid (IV) Inmate From: under your rug, |
posted 10-16-2003 16:41
Thanks guys i'll go check out imap, and yeah i'll have to look into that script too procmail too it sounds interesting |
Maniac (V) Mad Scientist From: 100101010011 <-- right about here |
posted 10-16-2003 18:06
Just a note, the IMAP or POP3 will depend on your mail server type. You can't pick the protocol. |
Maniac (V) Mad Scientist with Finglongers From: Cell 53, East Wing |
posted 10-29-2003 14:45
Started an FAQ on this as I was fiddling with related FAQs |