1
0
mirror of https://github.com/invoiceninja/invoiceninja.git synced 2024-09-22 17:31:35 +02:00
invoiceninja/app/ninja/mailers/UserMailer.php
2013-12-25 16:34:42 -05:00

23 lines
440 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 = [];
$subject = 'Notification - Invoice ' . $type;
$this->sendTo($user->email, $subject, $view, $data);
}
}