From: Björn Schießle Date: Thu, 14 Mar 2013 10:48:04 +0000 (+0100) Subject: use display name as sender for private link mails X-Git-Tag: v5.0.1~36^2 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=d06fec658ca80fb86035b21bc448668f22957ab0;p=nextcloud-server.git use display name as sender for private link mails --- 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()))));