diff options
Diffstat (limited to 'httemplate')
-rw-r--r-- | httemplate/docs/install.html | 1 | ||||
-rwxr-xr-x | httemplate/misc/email-invoice.cgi | 7 |
2 files changed, 4 insertions, 4 deletions
diff --git a/httemplate/docs/install.html b/httemplate/docs/install.html index f55ce6452..eaebcde2b 100644 --- a/httemplate/docs/install.html +++ b/httemplate/docs/install.html @@ -66,6 +66,7 @@ Before installing, you need: <li><a href="http://search.cpan.org/dist/Spreadsheet-WriteExcel">Spreadsheet::WriteExcel</a> <li><a href="http://search.cpan.org/dist/IO-stringy">IO-stringy (IO::Scalar)</a> <li><a href="http://search.cpan.org/dist/Frontier-RPC">Frontier::RPC (Frontier::RPC2)</a> + <li><a href="http://search.cpan.org/search?mode=module&query=MIME::Entity">MIME::Entity (MIME-tools)</a> <!-- <li><a href="http://search.cpan.org/dist/Crypt-YAPassGen">Crypt::YAPassGen</a> --> <li><a href="http://search.cpan.org/dist/ApacheDBI">Apache::DBI</a> <i>(optional but recommended for better webinterface performance)</i> </ul> diff --git a/httemplate/misc/email-invoice.cgi b/httemplate/misc/email-invoice.cgi index a560a1838..a3130c79f 100755 --- a/httemplate/misc/email-invoice.cgi +++ b/httemplate/misc/email-invoice.cgi @@ -10,10 +10,9 @@ my $cust_bill = qsearchs('cust_bill',{'invnum'=>$invnum}); die "Can't find invoice!\n" unless $cust_bill; my $error = send_email( - 'from' => $cust_bill->_agent_invoice_from || $conf->config('invoice_from'), - 'to' => [ grep { $_ ne 'POST' } $cust_bill->cust_main->invoicing_list ], - 'subject' => 'Invoice', - 'body' => [ $cust_bill->print_text ], + $cust_bill->generate_email( + 'from' => $cust_bill->_agent_invoice_from || $conf->config('invoice_from'), + ) ); eidiot($error) if $error; |