From fce15f8f61c19210424cfea8fbaf64b7fa75244f Mon Sep 17 00:00:00 2001 From: Ceri Davies Date: Wed, 27 Mar 2013 15:43:56 +0000 Subject: [PATCH] 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. --- core/ajax/share.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/ajax/share.php b/core/ajax/share.php index 37ddf8ae6c..5854b65aa0 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()))));