Menu

#68 pdfmailtemplate corrupts pdf file

open
nobody
PDF (2)
5
2007-10-21
2007-10-21
Anonymous
No

On about line 1406 (may be slightly different depending on your install) of Soupermail version 1.08, the MIME::Lite Type function needs to be defined as 'application/pdf' or else the pdf that is mailed to the $mailto is corrupted (sent binary instead of base64).

Specifically:

1399 if ($pdfFile) {
1400 ($debug) && print STDERR "PUTTING $pdfName AS AN ATTACHMENT\n";
1401 my $m;
1402 if ($CONFIG{'pgppdfs'}) {
1403 ($debug) && print STDERR "PUTTING PDF WITH PGPPDFS ON\n";
1404 $m = $mailtoMsg->attach(
1405 Path => $pdfFile,
1406 Filename => $pdfName, Type => 'application/pdf'
1407 );

Discussion


Log in to post a comment.