fix email from address in self hosted mode (#573)
* fix email from address in self hosted mode * fix linting
This commit is contained in:
parent
2c70ed090e
commit
7f6c21408c
|
|
@ -54,6 +54,10 @@ class SubmissionConfirmationMail extends OpenFormMail implements ShouldQueue
|
|||
|
||||
private function getFromEmail()
|
||||
{
|
||||
if(config('app.self_hosted')) {
|
||||
return config('mail.from.address');
|
||||
}
|
||||
|
||||
$originalFromAddress = Str::of(config('mail.from.address'))->explode('@');
|
||||
|
||||
return $originalFromAddress->first() . '+' . time() . '@' . $originalFromAddress->last();
|
||||
|
|
|
|||
|
|
@ -63,6 +63,9 @@ class FormSubmissionNotification extends Notification implements ShouldQueue
|
|||
|
||||
private function getFromEmail()
|
||||
{
|
||||
if(config('app.self_hosted')) {
|
||||
return config('mail.from.address');
|
||||
}
|
||||
$originalFromAddress = Str::of(config('mail.from.address'))->explode('@');
|
||||
|
||||
return $originalFromAddress->first() . '+' . time() . '@' . $originalFromAddress->last();
|
||||
|
|
|
|||
Loading…
Reference in New Issue