Browse Source

noreply should not be translate-able in email addresses

tags/2018.05
Tobias Diekershoff 2 years ago
parent
commit
ef8e984c62
2 changed files with 2 additions and 2 deletions
  1. +1
    -1
      src/App.php
  2. +1
    -1
      src/Worker/Delivery.php

+ 1
- 1
src/App.php View File

@@ -1062,7 +1062,7 @@ class App
$hostname = substr($hostname, 0, strpos($hostname, ':'));
}

$sender_email = L10n::t('noreply') . '@' . $hostname;
$sender_email = 'noreply@' . $hostname;
}

return $sender_email;


+ 1
- 1
src/Worker/Delivery.php View File

@@ -399,7 +399,7 @@ class Delivery {
$headers = 'From: '.Email::encodeHeader($local_user[0]['username'],'UTF-8').' <'.$local_user[0]['email'].'>'."\n";
}
} else {
$headers = 'From: '. Email::encodeHeader($local_user[0]['username'],'UTF-8') .' <'. L10n::t('noreply') .'@'.$a->get_hostname() .'>'. "\n";
$headers = 'From: '. Email::encodeHeader($local_user[0]['username'],'UTF-8') .' <noreply@'.$a->get_hostname() .'>'. "\n";
}

//if ($reply_to)


Loading…
Cancel
Save