Acme-CPANModulesBundle-Import-PerlDancerAdvent-2018
view release on metacpan or search on metacpan
END OF TERMS AND CONDITIONS
Appendix: How to Apply These Terms to Your New Programs
If you develop a new program, and you want it to be of the greatest
possible use to humanity, the best way to achieve this is to make it
free software which everyone can redistribute and change under these
terms.
To do so, attach the following notices to the program. It is safest to
attach them to the start of each source file to most effectively convey
the exclusion of warranty; and each file should have at least the
"copyright" line and a pointer to where the full notice is found.
<one line to give the program's name and a brief idea of what it does.>
Copyright (C) 19yy <name of author>
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation; either version 1, or (at your option)
any later version.
devdata/http_advent.perldancer.org_2018_17 view on Meta::CPAN
to => 'bar@perl.dance',
subject => encode('MIME-Header', 'Über uns'),
type => 'html',
body => encode('UTF-8',
'Die Geschichte unseres Projekts begann mit dem französischen Entwicker Alexis Sukrieh ...'),
};</pre>
<h2><a name="inline_images"></a>Inline images</h2>
<p>You can simply deliver emails with links to images, but usually email clients would not load them without user interaction.
It is possible though to attached the images to the email and reference them in the email body with a custom HTML tag:</p>
<pre class="prettyprint"> email {
from => 'foo@perl.dance',
to => 'bar@perl.dance',
subject => 'Welcome to the dancefloor!',
body => q{<p>Image embedded: <img src="cid:mycid"/></p>},
type => 'html',
attach => [ { Id => 'mycid', Path => '/dancefloor/dcr-header-logo.png' }],
multipart => 'related'
};</pre>
<h2><a name="providing_plain_text_part"></a>Providing plain text part</h2>
<p><a href="https://metacpan.org/pod/HTML::FormatText::WithLinks">HTML::FormatText::WithLinks</a> makes it easy to provide a plain text version
of your HTML email:</p>
<pre class="prettyprint">my $html = template $template, $tokens, { layout => 'email' };
my $f = HTML::FormatText::WithLinks->new;
my $text = $f->parse($html);
email {
from => 'foo@perl.dance',
to => 'bar@perl.dance',
subject => 'Welcome to the dancefloor!',
body => $text,
attach => {
Data => $html,
Type => "text/html"
},
multipart => 'alternative',
};</pre>
<h2><a name="configuration"></a>Configuration</h2>
<h3><a name="transports"></a>Transports</h3>
( run in 0.412 second using v1.01-cache-2.11-cpan-88abd93f124 )