Send invoice to multiple email IDs
There should be option to send Invoice to multiple eMail IDs. And a copy of mail should be sent to the Siwapp user also.
4 comments
-
Pierrot Amey commented
This is nice to know but I would suggest to add an option in parameter, for exemple a check box to select to get a copy of sent invoice and particularely an estimate.
What is "User 1" in 'user1@email.com' => 'user 1', . I putted my e-mail and I left "user 1. It's work but I see not interaction with the parameter 'user 1'. Should I modify it with a name? -
Paul Richardson
commented
until this becomes a very useful feature you can add CC users manually
within the /lib/EmailMessages.php file you can add the following lines and multiple users in the example below under the "Class InvoiceMessage extends SiwappMessage"
add the following code
->setCc(array(
'user1@email.com' => 'user 1',
'user2@email.com' => 'user 2')here is the example below
/** this variable indicates if the message is ready to be sent or not */
private $ready = false;public function __construct($invoice)
{
parent::__construct();
$this
->setTo($invoice->customer_email, $invoice->customer_name)
->setCc(array(
'user1@email.com' => 'user 1',
'user2@email.com' => 'user 2'));You can also add more if needed seperated by a comma above.
here is some more info here http://swiftmailer.org/docs/messages.html
-
LJ GUO
commented
Yes,This is very useful function.
-
Eduardo
commented
I need this feature. Thanks.