How to implement login through outlook through Curl in php. I am new to this issue.
1 answer
According to the task clarified in the comments, it is likely that CURL is not needed, IMAP is enough (unless of course it is in outlook) is enabled by default. The implementation is something like this:
$hostname = '{outlook.office365.com:993/imap/ssl/novalidate-cert}INBOX'; $username = 'username'; $password = 'password'; /* try to connect */ $inbox = imap_open($hostname,$username,$password) or die('Cannot connect to '.$hostname.': ' . imap_last_error()); |