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.
This commit is contained in:
Ceri Davies 2013-03-27 15:43:56 +00:00
parent 17cb47fbf6
commit fce15f8f61
1 changed files with 1 additions and 1 deletions

View File

@ -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()))));