BambooInvoice Forums

Send invoice from different email

 
Total Posts: 14

I know this is in the wrong section but we do not have a patch/mod section (maybe you can make one Derek?)

I was in need of sending my invoices from a different email address then my login so I made a simple mod to change the address sent from (when not using smtp)

Warning (Standard Disclaimer): I am not liable for any damages caused to your system/code/BambooInvoice/site/hosting/etc from using this patch/feature, This patch is provided as it and should be used by experienced users that know what they are doing

open config.php and add
// This controls what email is displayed when sending invoices
$config[‘invoice_email’] = ‘example@example.com’;

open bamboo_system_files/application/controllers/invoices.php

find (around line: 674, function: email)
$this->email->from($data[‘companyInfo’]->primary_contact_email, $data[‘companyInfo’]->primary_contact);

replace with
$this->email->from($this->config->item(‘invoice_email’), $this->config->item(‘invoice_email’));


-Chris