title: Php accessing the email inbox for email address
body: <p>I needed to get the Email address from which Im getting/receiving emails in my Inbox! what should I do for this, I at this time have the following code</p>
  
  <pre><code>&lt;?php
      $mbox = imap_open("{imap.gmail.com:993/imap/ssl}INBOX", "address@gmail.com", "passw0rd")
        or die("can't connect: " . imap_last_error());
  
      $status = imap_status($mbox, "{imap.gmail.com:993/imap/ssl}INBOX", SA_MESSAGES);
      if ($status) {
        echo $status-&gt;messages;
      }
  ?&gt;
  </code></pre>