To store a response for later validation: my $verifier = Mail::RoundTrip->new( address => 'email@example.com', 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);
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.