Skip to content

Instantly share code, notes, and snippets.

@nekokak
Created October 13, 2010 04:30
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save nekokak/623454 to your computer and use it in GitHub Desktop.
Save nekokak/623454 to your computer and use it in GitHub Desktop.
my $spf_server = Mail::SPF::Server->new;
my $request = Mail::SPF::Request->new(
versions => [1,2],
scope => 'mfrom',
identity => $self->from,
ip_address => $ip,
);
my $result = $spf_server->process($request);
$result->is_code('pass');
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment