PHP code example of hanson / exmail
1. Go to this page and download the library: Download hanson/exmail library. Choose the download type require. 2. Extract the ZIP file and open the index.php. 3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
hanson / exmail example snippets
# 初始化
$exmail = new \Hanccc\Exmail($client_id, $client_secret);
# 获取AuthKey
$authKey = $exmail->getAuthKey($email);
# 单点登录
$link = $exmail->login($email);
<a href="<?= $link