Guest User

Untitled

a guest
Dec 17th, 2018
92
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 0.38 KB | None | 0 0
  1. <?php
  2.     $mailbox = imap_open("{imap.gmail.com:993/ssl}INBOX", "tazmaxey@email.com", "pass");
  3.     $mail = imap_search($mailbox, "ALL");
  4.     $mail_headers = imap_headerinfo($mailbox, $mail[0]);
  5.     $subject = $mail_headers->subject;
  6.     $from = $mail_headers->fromaddress;
  7.     imap_setflag_full($mailbox, $mail[0], "\\Seen \\Flagged");
  8.     imap_close($mailbox);
  9.     echo $mail
  10. ?>
Add Comment
Please, Sign In to add comment