The London Perl and Raku Workshop takes place on 26th Oct 2024. If your company depends on Perl, please consider sponsoring and/or attending.

SYNOPSIS

    use Email::Stuffer::TestLinks;

NAME

Email::Stuffer::TestLinks - validates links in HTML emails sent by Email::Stuffer>send_or_die()

DESCRIPTION

When this module is included in a test, it parses http links (<a href="xyz">...</a>) and image links (<img src="xyz">) in every email sent through Email::Stuffer->send_or_die(). Each URI must be get a successful response code (200 range). Page title must not contain 'error' or 'not found' for text/html content. Image links must return an image content type.