mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2025-07-09 03:14:30 -04:00
Changed additional user emails to be sent from primary user name\email
This commit is contained in:
parent
0c2b75a324
commit
47edf3f565
@ -23,7 +23,18 @@ class UserMailer extends Mailer {
|
|||||||
'invitationMessage' => $invitor ? trans('texts.invitation_message', ['invitor' => $invitor->getDisplayName()]) : ''
|
'invitationMessage' => $invitor ? trans('texts.invitation_message', ['invitor' => $invitor->getDisplayName()]) : ''
|
||||||
];
|
];
|
||||||
|
|
||||||
$this->sendTo($user->email, CONTACT_EMAIL, CONTACT_NAME, $subject, $view, $data);
|
if ($invitor)
|
||||||
|
{
|
||||||
|
$fromEmail = $invitor->email;
|
||||||
|
$fromName = $invitor->getDisplayName();
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
$fromEmail = CONTACT_EMAIL;
|
||||||
|
$fromName = CONTACT_NAME;
|
||||||
|
}
|
||||||
|
|
||||||
|
$this->sendTo($user->email, $fromEmail, $fromName, $subject, $view, $data);
|
||||||
}
|
}
|
||||||
|
|
||||||
public function sendNotification(User $user, Invoice $invoice, $notificationType, Payment $payment = null)
|
public function sendNotification(User $user, Invoice $invoice, $notificationType, Payment $payment = null)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user