Skip to content

Commit

Permalink
properly call mailgun.filter_unknown_emails config value
Browse files Browse the repository at this point in the history
  • Loading branch information
dmcbrn committed Jul 6, 2022
1 parent 0611143 commit 7d7bb21
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Events/MailgunEvent.php
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ public function saveEvent(Request $request)
//get email
$mail_id_str = strtok($request->{'event-data'}['message']['headers']['message-id'], '@');
$email = $this->getEmail($mail_id_str);
if(!$email && config('email_log.email.filter_unknown_emails')) {
if(!$email && config('email_log.mailgun.filter_unknown_emails')) {
return response('Error: no E-mail found', 200)->header('Content-Type', 'text/plain');
}

Expand Down

0 comments on commit 7d7bb21

Please sign in to comment.