Commit 0d8aebd1 authored by Matthias Larisch's avatar Matthias Larisch

styles

parent 7994371b
Pipeline #48470512 passed with stages
in 12 minutes and 40 seconds
......@@ -304,9 +304,9 @@ class MailsControl extends ConsoleControl
self::info('Mail from: ' . $data['from'][0] . ' (' . $data['from'][1] . ')');
$email = new fEmail();
$mailparts = explode('@', $data['from'][0]);
$fromDomain = end($mailparts);
if(in_array($fromDomain, MAILBOX_OWN_DOMAINS)) {
$mailParts = explode('@', $data['from'][0]);
$fromDomain = end($mailParts);
if (in_array($fromDomain, MAILBOX_OWN_DOMAINS, true)) {
$email->setFromEmail($data['from'][0], $data['from'][1]);
} else {
// use DEFAULT_EMAIL as sender and ReplyTo for the actual sender
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment