phpBMS

Show
Ignore:
Timestamp:
12/31/09 16:25:28 (2 years ago)
Author:
brieb
Message:
  • fixed e-mailing of PDF invoice and quotes
Files:
1 modified

Legend:

Unmodified
Added
Removed
  • trunk/phpbms/modules/bms/report/invoices_pdf_class.php

    r696 r697  
    789789                            $to =               $this->invoicerecord["email"]; 
    790790                            $from =     $userinfo["email"]; 
    791                             $subject =  "Your ".$this->title." from ".COMPANY_NAME; 
    792                             $message =  "Attached is your ".$this->title." from ".COMPANY_NAME."\n\n" . 
     791                            $subject =  "Your ".$this->settings["reportTitle"]." from ".COMPANY_NAME; 
     792                            $message =  "Attached is your ".$this->settings["reportTitle"]." from ".COMPANY_NAME."\n\n" . 
    793793                                                    "The attachment requires Adobe Acrobat Reader to view. \n If you do not " . 
    794794                                                    "have Acrobat Reader, you can download it at http://www.adobe.com  \n\n" . 
     
    815815                            $message .= "--{$mime_boundary}\n" . 
    816816                                             "Content-Type: {application/pdf};\n" . 
    817                                              " name=\"".$this->title.$this->invoicerecord["id"].".pdf\"\n" . 
     817                                             " name=\"".$this->settings["reportTitle"].$this->invoicerecord["id"].".pdf\"\n" . 
    818818                                             "Content-Disposition: attachment;\n" . 
    819                                              " filename=\"".$this->title.$this->invoicerecord["id"].".pdf\"\n" . 
     819                                             " filename=\"".$this->settings["reportTitle"].$this->invoicerecord["id"].".pdf\"\n" . 
    820820                                             "Content-Transfer-Encoding: base64\n\n" . 
    821821                                             $pdf . "\n\n" . 
phpBMS vulnerability assesment provided by Orvant Inc. Copyright © 2010 Kreotek, LLC. All Rights reserved.