#1
  1. No Profile Picture
    Contributing User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Jun 2000
    Posts
    65
    Rep Power
    15
    I've been programming in PHP for a few months now, but have recently been given the task of writing a webmail for our mail server.

    Reading through the PHP manual, I can understand the basics, connecting to the mail server, sending mail, ect.

    But there are a few things that leave me with dumbfounded look on my face. (Either I'm not reading it right, or it's not explained well.)

    Here's where I run into problems:

    Headers. I can't seem to have any script i try retrieve the message headers in a mailbox. I also don't see which commands are best suited for which situation.

    sorting. I have no clue how i would sort the messages in a mailbox and display them to be read.

    If anyone can point me down the right road, or tell me if there's a decent tutorial out there, I'd greatly appreciate it.

    TIA,
    Ben
  2. #2
  3. No Profile Picture
    Robert_J_Sherman
    Guest
    Devshed Newbie (0 - 499 posts)
    imap_fetchstructure();

    imap_fetchheaders() and imap_fetchheader()

    are pretty much what you want to look at, unfortunately the imap_fetchstructure really
    isn't documented all that well.

    But on the PHP site, under the references, there are plenty of user notes, and links
    for examples and body decoding information.

    ------------------
    SnR Graphics,
    Low Cost Hosting and Web Development.
  4. #3
  5. No Profile Picture
    Contributing User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Jun 2000
    Location
    Seaside, CA
    Posts
    84
    Rep Power
    15
    You could also mosey over to hotscripts.com and grab one, then take it apart to learn how it's done ... or just use it.

    ------------------
    From the day we're born, we're running out of time.

Similar Threads

  1. need a proven webmail system - free :-)
    By tenaka in forum Scripts
    Replies: 24
    Last Post: August 12th, 2008, 10:17 AM
  2. php based webmail app
    By madruenrg in forum Scripts
    Replies: 4
    Last Post: February 10th, 2004, 03:03 AM
  3. Apache2 mod_proxy HTTP <=> HTTPS webmail
    By Khebyxos in forum Apache Development
    Replies: 0
    Last Post: February 9th, 2004, 09:41 AM
  4. fetching webmail into files
    By Kiehlster in forum Perl Programming
    Replies: 2
    Last Post: October 11th, 2003, 08:40 PM
  5. file pointer at beginning of file....
    By ROT in forum PHP Development
    Replies: 9
    Last Post: August 3rd, 2000, 04:50 PM

IMN logo majestic logo threadwatch logo seochat tools logo