Html::FromMail::Default::HTMLifiers - convert data type to HTML
THIS FUNCTION IS NOT PRESENT, for the following reason. What should happen here? The message part/multipart contains an html message, but that interferes with the HTML of the template.
One solution could be to strip the header, and the html and body tags. However, what about style sheet info? That may very well interfere with the template's style sheet. And consider erroneous HTML?
So, until some nice solution is presented, HTML will not be inlined. As alternative, your production software may differentiate between html messages and non-html messages. Produce the page according to the template, and then simply link to the produced HTML for the user. However, I don't know whether that is smart....
Convert plain text into HTML using HTML::FromText. Configuration can be supplied as show in the example. The defaults are set to mode pre with urls, email, bold, and underline.
pre
urls
email
bold
underline
example: configuring text conversion
my $f = HTML::FromMail->new ( settings => { message => { disposition => \&my_disposer } , HTML::FromText => { block_code => 0 } } );
This module is part of HTML-FromMail distribution version 0.12, built on January 29, 2018. Website: http://perl.overmeer.net/CPAN/
Copyrights 2003-2018 by [Mark Overmeer <markov@cpan.org>]. For other contributors see ChangeLog.
This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself. See http://dev.perl.org/licenses/
To install HTML::FromMail, copy and paste the appropriate command in to your terminal.
cpanm
cpanm HTML::FromMail
CPAN shell
perl -MCPAN -e shell install HTML::FromMail
For more information on module installation, please visit the detailed CPAN module installation guide.