NAME
Mail::Simple::DKIM::Signer - Simple DKIM Signer
SYNOPSIS
my
$dkim
= Mail::Simple::DKIM::Signer->new({
key
=>
$private_key
,
#private key string
domain
=>
'example.com'
,
selector
=>
'dkim'
,
c
=>
'simple/simple'
,
###simple/simple is the only supported Canonicalization
a
=>
'rsa-sha1'
,
##rsa-sha1 is the only supported method
i
=>
'@example.com'
,
l
=>
'1'
,
##include body length in signature
});
##create message with MIME::Lite
use
MIME::Lite;
### Create a new single-part message, to send a GIF file:
$msg
= MIME::Lite->new(
From
=>
'me@myhost.com'
,
To
=>
'you@yourhost.com'
,
Subject
=>
'Message Subject'
,
Type
=>
'TEXT'
,
Data
=>
'bla bla bla...'
);
##create dkim signature for this message
my
$signature
=
$dkim
->sign(
$msg
->header_as_string,
$msg
->body_as_string);
##add dkim header to the message message
$msg
->{Header}->[0] = [
$signature
->{key},
$signature
->{value} ];
##send your message
$msg
->
send
();
DESCRIPTION
THIS IS AN Experimental dkim simple signer it only supports simple/simple Canonicalization and rsa-sha1 encoding
For more advanced signing methods please use Mail::DKIM
SEE ALSO
MIME::Lite
AUTHOR
Mahmoud A. Mehyar, <mamod.mehyar@gmail.com>
COPYRIGHT AND LICENSE
Copyright (C) 2010 by Mahmoud A. Mehyar
This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself, either Perl version 5.10.1 or, at your option, any later version of Perl 5 you may have available.