Advertisement
Guest User

Untitled

a guest
Jan 3rd, 2017
289
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.26 KB | None | 0 0
  1. $hostname = '{outlook.office365.com:993/imap/ssl/novalidate-cert}INBOX';
  2. $username = 'username';
  3. $password = 'password';
  4.  
  5. /* try to connect */
  6. $inbox = imap_open($hostname,$username,$password) or die('Cannot connect to '.$hostname.': ' . imap_last_error());
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement