mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2024-11-09 20:52:56 +01:00
Updated version
This commit is contained in:
parent
506815e147
commit
49e08f2d9d
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user