Hi all.

I have a PHP script that reads my email inbox via POP3. I'm using the PHP IMAP extention.

I can already access the "From" and "To" fields.
What i'm having trouble with is accessing the Cc field.
I need to read/count/summarize all the email addresses and draw up some stats.

Recommended Answers

All 4 Replies

What code do you have?

The imap_headerinfo should return that information.

I have

$overview = imap_fetch_overview($inbox,$email_number);
var_dump($overview);

This only returns an array with the following:
[subject]
[from]
[to]
[date]
[message_id]
[references]
[in_reply_to]
[size]
[uid]
[msgno]
[recent]
[flagged]
[answered]
[deleted]
[seen]
[draft]
[udate]

The Cc value isnt there.

But the function "imap_headerinfo" look like it might work.
Don't know why I didn't see it before.

I'll give it a try and will get back to you.

That was it!
Thank you!

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, learning, and sharing knowledge.