1
0
mirror of https://github.com/invoiceninja/invoiceninja.git synced 2024-11-09 20:52:56 +01:00

Updated version

This commit is contained in:
Hillel Coren 2015-06-15 20:37:46 +03:00
parent 506815e147
commit 49e08f2d9d

View File

@ -86,13 +86,15 @@ class ContactMailer extends Mailer
if ($payment->invitation) {
$user = $payment->invitation->user;
$contact = $payment->contact->email;
$contact = $payment->contact;
} else {
$user = $payment->user;
$contact = $payment->client->contacts[0];
}
$this->sendTo($contact->email, $user->email, $accountName, $subject, $view, $data);
if ($user->email && $contact->email) {
$this->sendTo($contact->email, $user->email, $accountName, $subject, $view, $data);
}
}
public function sendLicensePaymentConfirmation($name, $email, $amount, $license, $productId)