Do you have a question? Post it now! No Registration Necessary. Now with pictures!
January 25, 2007, 12:59 pm
rate this thread
the php.net documentation is not very clear (by this I mean
simple enough for me to understand).
Does anyone have a link or a resource that give simple examples ?
I need to retrieve some plain text or the plain text part of a
multipart email only.
Re: POPing mail
I don't know of any tutorials but in my messing around with the IMAP
functions it seemed pretty easy. The functions are pretty self
explanatory as found on www.php.net so really try to remember the folowing:
1) connect to the mail server
2) obtain the number of messages (if needed)
3) or optionally search for a specific message
4) fetch the info you want
5) close the connection
A simple example would be:
$mailbox_status = imap_check($mailbox);
echo "<br>Mailbox status for :<br>";
echo "System date: <br>";
echo "System driver: <br>";
echo "Message count: <br>";
you may be better off looking through www.phpclasses.org and finding a
pre-made class that will do all this for you.