Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to use #6

Open
neubreed opened this issue Feb 24, 2016 · 4 comments
Open

How to use #6

neubreed opened this issue Feb 24, 2016 · 4 comments
Assignees

Comments

@neubreed
Copy link

Are you able to add usage docs please?

Thanks a lot

@angrychimp angrychimp self-assigned this Mar 3, 2016
@angrychimp
Copy link
Owner

Certainly. I'll see if I can put something together in the next few days.

@vivex
Copy link

vivex commented Oct 5, 2016

@angrychimp Few months gone 😸 , please put it in wiki or in README , or specify here, i will fork and update

@turboflash
Copy link

To anyone who may find it useful, you can just change the following lines in DKIM_Verify::validate()
$signatures = $this->_getHeaderFromRaw('DKIM-Signature'); $signatures = $signatures['DKIM-Signature'];
to
$signatures = $this->_getHeaderFromRaw('X-Google-DKIM-Signature'); $signatures = $signatures['X-Google-DKIM-Signature'];
so that you can do validation on original message with X-Google-DKIM-Signature.

@turboflash
Copy link

One more thing, for anyone who wants to do a quick verification on the email message authenticity, here is the code.
`require_once "DKIM/Verify.php";

$email = file_get_contents($argv[1]);
$dkim_verify = new DKIM_Verify($email);
$r = $dkim_verify->validate();
print_r($r);
`

When running the script, just supply the filename as the argument. 😉

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants