diff options
author | Ceri Davies <ceri@submonkey.net> | 2013-03-27 15:43:56 +0000 |
---|---|---|
committer | Ceri Davies <ceri@submonkey.net> | 2013-03-27 15:43:56 +0000 |
commit | fce15f8f61c19210424cfea8fbaf64b7fa75244f (patch) | |
tree | 212bae7668f02e38987e239f6d490121474d1872 | |
parent | 17cb47fbf6c5164dda3a27cb030f44557a1e3c1e (diff) | |
download | nextcloud-server-fce15f8f61c19210424cfea8fbaf64b7fa75244f.tar.gz nextcloud-server-fce15f8f61c19210424cfea8fbaf64b7fa75244f.zip |
Use displayName in the From field of outbound email about new shares.
This is important in the Active Directory case where users are
currently getting a GUID in the From field, making emails look quite a
lot like spam.
-rw-r--r-- | core/ajax/share.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/core/ajax/share.php b/core/ajax/share.php index 37ddf8ae6cf..5854b65aa03 100644 --- a/core/ajax/share.php +++ b/core/ajax/share.php @@ -110,7 +110,7 @@ if (isset($_POST['action']) && isset($_POST['itemType']) && isset($_POST['itemSo // send it out now try { - OCP\Util::sendMail($to_address, $to_address, $subject, $text, $from_address, $user); + OCP\Util::sendMail($to_address, $to_address, $subject, $text, $from_address, $displayName); OCP\JSON::success(); } catch (Exception $exception) { OCP\JSON::error(array('data' => array('message' => OC_Util::sanitizeHTML($exception->getMessage())))); |