mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2024-11-11 13:42:49 +01:00
23 lines
467 B
PHP
Executable File
23 lines
467 B
PHP
Executable File
<?php namespace ninja\mailers;
|
|
|
|
use Invoice;
|
|
use Contact;
|
|
use User;
|
|
|
|
class UserMailer extends Mailer {
|
|
|
|
public function sendNotification(User $user, Invoice $invoice, $type)
|
|
{
|
|
if (!$user->email)
|
|
{
|
|
return;
|
|
}
|
|
|
|
$view = 'invoice';
|
|
//$data = array('link' => URL::to('view') . '/' . $invoice->invoice_key);
|
|
$data = ['link' => ''];
|
|
$subject = 'Notification - Invoice ' . $type;
|
|
|
|
$this->sendTo($user->email, CONTACT_EMAIL, $subject, $view, $data);
|
|
}
|
|
} |