mirror of
https://github.com/crater-invoice/crater.git
synced 2025-12-16 10:22:55 -05:00
connect mail sender with api
This commit is contained in:
@@ -70,7 +70,13 @@ class MailSenderRequest extends FormRequest
|
||||
|
||||
public function getMailSenderPayload()
|
||||
{
|
||||
return collect($this->validated())
|
||||
$data = $this->validated();
|
||||
|
||||
if ($data['settings']['encryption'] == 'none') {
|
||||
$data['settings']['encryption'] = '';
|
||||
}
|
||||
|
||||
return collect($data)
|
||||
->merge([
|
||||
'company_id' => $this->header('company'),
|
||||
])
|
||||
|
||||
@@ -30,7 +30,7 @@ class SendEstimatesRequest extends FormRequest
|
||||
'body' => [
|
||||
'required',
|
||||
],
|
||||
'from' => [
|
||||
'mail_sender_id' => [
|
||||
'required',
|
||||
],
|
||||
'to' => [
|
||||
|
||||
@@ -30,7 +30,7 @@ class SendInvoiceRequest extends FormRequest
|
||||
'subject' => [
|
||||
'required',
|
||||
],
|
||||
'from' => [
|
||||
'mail_sender_id' => [
|
||||
'required',
|
||||
],
|
||||
'to' => [
|
||||
|
||||
@@ -30,7 +30,7 @@ class SendPaymentRequest extends FormRequest
|
||||
'body' => [
|
||||
'required',
|
||||
],
|
||||
'from' => [
|
||||
'mail_sender_id' => [
|
||||
'required',
|
||||
],
|
||||
'to' => [
|
||||
|
||||
Reference in New Issue
Block a user