Test::Reporter::Mail::Util - mail utility functions
use Test::Reporter::Mail::Util qw( ... );
This package provides several mail related utility functions. Any function required must by explicitly listed on the use line to be exported into the calling package.
Attempt to determine the current uers mail domain string via the following methods
Look for the MAILDOMAIN enviroment variable, which can be set from outside the program.
Look for a sendmail.cf file and extract DH parameter
Look for a smail config file and usr the first host defined in hostname(s)
Try an SMTP connect (if Net::SMTP exists) first to mailhost then localhost
Use value from Net::Domain::domainname (if Net::Domain exists)
Return a guess at the current users mail address. The user can force the return value by setting the MAILADDRESS environment variable.
Attempts to get the reporter's real name, i.e. whatever happens to be in the GCOS field.
Graham Barr.
Maintained by Mark Overmeer <mailtools@overmeer.net>
Copyright (c) 2002-2003 Mark Overmeer, 1995-2001 Graham Barr. All rights reserved. This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself.
To install Test::Reporter, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Test::Reporter
CPAN shell
perl -MCPAN -e shell install Test::Reporter
For more information on module installation, please visit the detailed CPAN module installation guide.