istempmail php
1.0.0
PHP库使用ISTEMPMAIL API检查一次性电子邮件地址
要获取免费的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();
}