Advertisement
Guest User

Untitled

a guest
Jul 27th, 2017
511
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.53 KB | None | 0 0
  1. <?PHP
  2. $user = "email@domain.com";
  3. $password = "password123";
  4. $mbox = imap_open("{exchange01:993/imap/ssl/novalidate-cert}", $user, $password);
  5.  
  6. $message = imap_fetchbody($mbox,1,1);
  7.  
  8. print_r($message);
  9.  
  10. if($mbox)
  11. {
  12. imap_close($mbox);
  13. };
  14. ?>
  15.  
  16. <html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" xmlns="http://www.w3.org/TR/REC-html40"><head><meta http-equiv=Content-Type content="text/html; charset=iso-8859-1"><meta name=Generator content="Microsoft Word 15 (filtered medium)"><!--[if !mso]><style>v:* {behavior:url(#default#VML);}
  17. o:* {behavior:url(#default#VML);}
  18. w:* {behavior:url(#default#VML);}
  19. .shape {behavior:url(#default#VML);}
  20. </style><![endif]--><style><!--
  21. /* Font Definitions */
  22. @font-face
  23. {font-family:"Cambria Math";
  24. panose-1:2 4 5 3 5 4 6 3 2 4;}
  25. @font-face
  26. {font-family:Calibri;
  27. panose-1:2 15 5 2 2 2 4 3 2 4;}
  28. @font-face
  29. {font-family:Verdana;
  30. panose-1:2 11 6 4 3 5 4 4 2 4;}
  31. @font-face
  32. {font-family:"Neo Sans Std";}
  33. /* Style Definitions */
  34. p.MsoNormal, li.MsoNormal, div.MsoNormal
  35. {margin:0cm;
  36. margin-bottom:.0001pt;
  37. font-size:11.0pt;
  38. font-family:"Calibri",sans-serif;
  39. mso-fareast-language:EN-US;}
  40. a:link, span.MsoHyperlink
  41. {mso-style-priority:99;
  42. color:#0563C1;
  43. text-decoration:underline;}
  44. a:visited, span.MsoHyperlinkFollowed
  45. {mso-style-priority:99;
  46. color:#954F72;
  47. text-decoration:underline;}
  48. span.E-postmall17
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement