Created
March 21, 2018 13:30
-
-
Save tflight/10ab5ea32a5081d6acd96af48313d130 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
require __DIR__ . '/vendor/autoload.php'; | |
$auth_factory = new \Aura\Auth\AuthFactory($_COOKIE); | |
$auth = $auth_factory->newInstance(); | |
$imap_adapter = $auth_factory->newImapAdapter( | |
'{mail.example.com:993/imap/ssl}' | |
); | |
$loginService = $auth_factory->newLoginService($imap_adapter); | |
$loginService->login($auth, [ | |
'username' => 'username', | |
'password' => 'password' | |
]); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment