use Mail::DKIM::TextWrap; #recommended
use Getopt::Long;
+# default option values
my $method = "simple/simple";
+my $selector = "sel";
+my $keyfile = "aux-fixed/dkim/dkim.private";
GetOptions(
"method=s" => \$method,
+ "selector=s" => \$selector,
+ "keyfile=s" => \$keyfile,
);
# create a signer object
Algorithm => "rsa-sha1",
Method => $method,
Domain => "test.ex",
- Selector => "sel",
- KeyFile => "aux-fixed/dkim/dkim.private",
+ Selector => $selector,
+ KeyFile => $keyfile,
);
# read an email and pass it into the signer, one line at a time