---- Changes since 1.430 ----
Added support for Exim, thanks to Emmanuel Florac.
Re-wrote the entire user interface to use the new Webmin UI library, and to bring it into sync with the Usermin module for reading mail.
+---- Changes since 1.440 ----
+HTML messages now have a converted plain-text attachment automatically added, for mail clients that only support text.
'data' => $in{'body'} } );
}
$bodyattach = $attach[0];
+
+ if ($in{'html_edit'}) {
+ # Add the plain-text body
+ local $mt = "text/plain";
+ if ($plainbody =~ /[\177-\377]/) {
+ push(@attach,
+ { 'headers' => [ [ 'Content-Type', $mt ],
+ [ 'Content-Transfer-Encoding',
+ 'quoted-printable' ] ],
+ 'data' => quoted_encode($plainbody) });
+ }
+ else {
+ push(@attach,
+ { 'headers' => [ [ 'Content-Type', $mt ],
+ [ 'Content-Transfer-Encoding',
+ '7bit' ] ],
+ 'data' => $plainbody });
+ }
+ }
}
$attachsize = 0;
for($i=0; defined($in{"attach$i"}); $i++) {