See METHODS in Mail::Reporter
Option | Defined in | Default |
---|---|---|
formatter | ||
log | Mail::Reporter |
|
producers | <some basic items> | |
settings | {} | |
templates | '.' | |
trace | Mail::Reporter |
|
Returns the selected formatter object.
The CLASS object, for instance a Mail::Message, is handled by the
HTML_PRODUCER class. When an OBJECT is specified, the class of that
object will be used. The producer returned is the best fit with
respect of the inheritance relations. undef
is returned when
no producer was found.
Without producer as parameter, the actual producer for the CLASS is returned. In this case, the producer class will be compiled for you, if that hasn't be done before.
use HTML::FromMail; my $converter = HTML::FromMail->new; print $converter->producer("Mail::Message"); print $converter->producer($msg);
The specified producer (see new(producers)) does not exist or produces compilation errors. The problem is displayed.
Returns a hash which contains the differences from the default for producers of a certain TOPIC, or the topic of the specified PRODUCER. With HASH, all settings will be replaced by that value as new set.
It may be easier to use new(settings) or add the information to the content of your templates.
Returns the location of the templates. When a TOPIC is specified, that is added to the templates path. With a PRODUCER, that is object is used to get the topic.
The templates directory (see new(templates)) does not contain a template for the specified topic (see HTML::FromMail::Object::new(topic)).
Produce the HTML output of the OBJECT, using the specified OPTIONS.
Option | Default |
---|---|
output | <required> |
use |
|
Returns a list with all filenames which are included in the DIRECTORY specified or the ARRAY. If only one FILENAME is specified, then that will be returned.