PrePAN

Sign in to PrePAN

Mail::RoundTrip toolkit to manage round trip varification of email addresses

Author
einhverfr@github
Date
URL
Status
Shipped
Good

Synopsis

To store a response for later validation:

  my $verifier = Mail::RoundTrip->new(
               address => 'test@example.org',
             spool_dir => '/var/spool/held_requests',
                    data => $hashref,
   );

   my $code = $verifier->code;

   $verfier->send_mail($template);

To check the response:

   my $verifier = Mail::RoundTrip->new(
             spool_dir => '/var/spool/held_requests',
   );

  my $data = $verifier->verify($code);

Description

Many web applications require a framework for validating email addresses of registered users. This module provides a basic toolkit for the common routines.

It stores a JSON object file in the spool directory, and retrieves this when the code is provided.

The verification routines are intended to be usable from web-based, email-based, and other means of verification.

Dependencies:

  • JSON
  • Moo
  • SMTP::Simple

Comments

Please sign up to post a review.