Unique Mail Id - IMAP

Discussion in 'PHP' started by Aitanus, Oct 11, 2011.

  1. #1
    Hello

    I need to have a unique mail ID for every email message on php code using imap, not a unique id for the session.

    does anyone knows how can i retrive that information from the inbox?

    Thanks
    Aitanus
     
    Aitanus, Oct 11, 2011 IP
  2. jestep

    jestep Prominent Member

    Messages:
    3,659
    Likes Received:
    215
    Best Answers:
    19
    Trophy Points:
    330
    #2
    jestep, Oct 11, 2011 IP
  3. Rainulf

    Rainulf Active Member

    Messages:
    373
    Likes Received:
    12
    Best Answers:
    0
    Trophy Points:
    85
    #3
    Please elaborate. What do you mean by unique mail ID?
     
    Rainulf, Oct 11, 2011 IP
  4. Rukbat

    Rukbat Well-Known Member

    Messages:
    2,908
    Likes Received:
    37
    Best Answers:
    51
    Trophy Points:
    125
    #4
    That depends on the email client you're using. Some show all headers, some don't show the ID. With some you can look at the raw email in the data file or database, with others you can't.

    Regardless, every email in the world has a unique ID, and every one sent in the future will continue to have a unique ID. No two emails should ever have the same ID.

    @Rainulf:
    Each email ever sent has an ID in the headers. It's generated by the SMTP server that sends the email.
     
    Rukbat, Oct 14, 2011 IP