phpmailer/dkimvalidator 问题修复 & 功能扩展

解决BUG、新增功能、兼容多环境部署,快速响应你的开发需求

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

phpmailer/dkimvalidator

最新稳定版本:v0.3.1

Composer 安装命令:

composer require phpmailer/dkimvalidator

包简介

A DKIM signature validator in PHP.

README 文档

README

A straightforward validation class for checking DKIM signatures and header settings. Requires PHP 7.2 or later.

Looking to send DKIM-signed email? Check out PHPMailer!

Installation

composer require phpmailer/dkimvalidator

Usage

use PHPMailer\DKIMValidator\Validator;
use PHPMailer\DKIMValidator\DKIMException;
require 'vendor/autoload.php';
//Put a whole raw email message in here
//Load the message directly from disk -
//don't copy & paste it as that will likely affect line breaks & charsets
$message  = file_get_contents('message.eml');
$dkimValidator = new Validator($message);
try {
    if ($dkimValidator->validateBoolean()) {
        echo "Cool, it's valid";
    } else {
        echo 'Uh oh, dodgy email!';
    }
} catch (DKIMException $e) {
    echo $e->getMessage();
}

Changelog

统计信息

  • 总下载量: 582.34k
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 22
  • 点击次数: 1
  • 依赖项目数: 6
  • 推荐数: 0

GitHub 信息

  • Stars: 22
  • Watchers: 1
  • Forks: 30
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2019-10-10