Jump to content

Reading cc and bcc email ids using php imap


Bhaskar

Recommended Posts

This to topic is all about all imap functions

 

  Hi All,

 

      I am using imap functions to read the mails from the specific mail box.

  the following the code which i have used.

 

  $mbox  = imap_open("{--------}INBOX","username","pass");

  $mc = imap_check($mbox);

  $result = imap_fetch_overview($mbox,"1:{$mc->Nmsgs}",0);

  foreach ($result as $overview) {

        echo $overview->to;

        echo $overview->seen;

        echo $overview->subject;

  }

 

    the o/p is:

                      [email protected]

                      1

                    test mail

 

    What my requirement is i am not able to retrieve the "cc" and "Bcc" email id's of that inbox entry.

 

    Can any one advice me how to get this cc and Bcc email id's.

 

          Thanks in advance.

 

    Bhaskar Nagelli

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.