istempmail php
1.0.0
ISTEMPMail APIを使用して使い捨てメールアドレスを確認するPHPライブラリ
無料のAPIトークンを取得するには、ISTEMPMailで登録して、そこにAPIトークンをコピーします。
<?php
include('istempmail.php');
$isTempMail = new IsTempMail('YOUR_API_TOKEN');
try {
if($isTempMail->isDea('[email protected]')) {
echo 'Disposable email address detected.';
}
} catch (Exception $exception) {
echo $exception->getMessage();
}