1
0
mirror of https://github.com/invoiceninja/invoiceninja.git synced 2024-11-10 05:02:36 +01:00

Text emails

This commit is contained in:
David Bomba 2022-03-04 14:08:29 +11:00
parent c02bc2c389
commit f3acd6bf90
4 changed files with 14 additions and 2 deletions

View File

@ -54,6 +54,7 @@ class ACHVerificationNotification extends Mailable
return $this
->subject(ctrans('texts.ach_verification_notification_label'))
->text('email.gateways.ach-verification-notification_text')
->view('email.gateways.ach-verification-notification', [
'logo' => $this->company->present()->logo(),
'settings' => $this->company->settings,

View File

@ -59,10 +59,9 @@ class CompanyImportFailure extends Mailable
$this->title = ctrans('texts.company_import_failure_subject', ['company' => $this->company->present()->name()]);
$this->whitelabel = $this->company->account->isPaid();
nlog($this->user_message);
return $this->from(config('mail.from.address'), config('mail.from.name'))
->subject(ctrans('texts.company_import_failure_subject', ['company' => $this->company->present()->name()]))
->text('email.import.import_failure_text')
->view('email.import.import_failure', ['user_message' => $this->user_message, 'title' => $this->title]);
}
}

View File

@ -0,0 +1,5 @@
{!! ctrans('texts.ach_verification_notification_label') !!}
{!! ctrans('texts.ach_verification_notification') !!}
{!! $url !!}

View File

@ -0,0 +1,7 @@
{!! $title !!}
{!! ctrans('texts.company_import_failure_body') !!}
@if(isset($whitelabel) && !$whitelabel)
{{ ctrans('texts.ninja_email_footer', ['site' => 'https://invoiceninja.com']) }}
@endif