From: Björn Schießle Date: Thu, 14 Mar 2013 12:26:20 +0000 (+0100) Subject: use display name as sender for private link mails, approved in #2294 X-Git-Tag: v6.0.0alpha2~1068 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=8154b4be7de8c0f9616b3fb0d4b8385204615c61;p=nextcloud-server.git use display name as sender for private link mails, approved in #2294 --- diff --git a/core/ajax/share.php b/core/ajax/share.php index 9201b48cb95..7ebd8949710 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()))));