mirror of
				https://github.com/crater-invoice/crater.git
				synced 2025-10-30 21:21:09 -04: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