Forum Moderators: coopster
To further my PHP experimentation I’m attempting to create a little tool to enable me to update my website via e-mail. (In essence the e-mail will be sent from a mobile phone).
My logic dictates that I need to create a special e-mail address (that’s easy). Now I need to write a php script to access the mailbox and extract the e-mail and its contents – the email subject, the contents and the e-mail attachment.
In theory this seems to be quite a simple task barring some filtering etc.
I’ve been searching the web for info on how to do this but I have only found hectically complicated libraries or nothing at all.
I think I might be searching with the wrong terms. Could someone point me in the right direction? What php elements do I have to research to accomplish these tasks?
Thanks guys!
Wd.
Take a look at the IMAP, POP3 and NNTP Functions [php.net]. There are some examples there that may help get you started.
Also, you should check phpclasses.org [google.com]because I'm sure there is a class there that has already been created. If there is a good enough readme.txt file, then it shouldn't be to hard to learn the class.
Good luck! :)