mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2025-07-09 03:14:30 -04:00
Hid 'test email' button until issue updating connection info is resolved
This commit is contained in:
parent
1f105b456f
commit
0ce9e426d9
@ -212,9 +212,9 @@ class AppController extends BaseController
|
|||||||
];
|
];
|
||||||
|
|
||||||
try {
|
try {
|
||||||
$this->mailer->sendTo($email, $email, $fromName, 'Test email', 'contact', $data);
|
$response = $this->mailer->sendTo($email, $email, $fromName, 'Test email', 'contact', $data);
|
||||||
|
|
||||||
return 'Sent';
|
return $response === true ? 'Sent' : $response;
|
||||||
} catch (Exception $e) {
|
} catch (Exception $e) {
|
||||||
return $e->getMessage();
|
return $e->getMessage();
|
||||||
}
|
}
|
||||||
|
@ -48,7 +48,7 @@
|
|||||||
->value(isset($_ENV['MAIL_USERNAME']) ? $_ENV['MAIL_USERNAME'] : '') !!}
|
->value(isset($_ENV['MAIL_USERNAME']) ? $_ENV['MAIL_USERNAME'] : '') !!}
|
||||||
{!! Former::password('mail[password]')->label('Password')
|
{!! Former::password('mail[password]')->label('Password')
|
||||||
->value(isset($_ENV['MAIL_PASSWORD']) ? $_ENV['MAIL_PASSWORD'] : '') !!}
|
->value(isset($_ENV['MAIL_PASSWORD']) ? $_ENV['MAIL_PASSWORD'] : '') !!}
|
||||||
{!! Former::actions( Button::primary('Send test email')->small()->withAttributes(['onclick' => 'testMail()']), ' <span id="mailTestResult"/>' ) !!}
|
{{-- Former::actions( Button::primary('Send test email')->small()->withAttributes(['onclick' => 'testMail()']), ' <span id="mailTestResult"/>' ) --}}
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
@endif
|
@endif
|
||||||
|
Loading…
x
Reference in New Issue
Block a user