Wrong email sender fix #18730
Wrong email sender in app sharebymail when sending password to owner fix #18730
This commit is contained in:
parent
69ae7abe72
commit
44eba5cdc6
|
@ -620,9 +620,7 @@ class ShareByMailProvider implements IShareProvider {
|
||||||
$emailTemplate->addBodyText($this->l->t('You can choose a different password at any time in the share dialog.'));
|
$emailTemplate->addBodyText($this->l->t('You can choose a different password at any time in the share dialog.'));
|
||||||
$emailTemplate->addFooter();
|
$emailTemplate->addFooter();
|
||||||
|
|
||||||
if ($initiatorEMailAddress) {
|
$message->setFrom([\OCP\Util::getDefaultEmailAddress($instanceName) => $senderName]);
|
||||||
$message->setFrom([$initiatorEMailAddress => $initiatorDisplayName]);
|
|
||||||
}
|
|
||||||
$message->setTo([$initiatorEMailAddress => $initiatorDisplayName]);
|
$message->setTo([$initiatorEMailAddress => $initiatorDisplayName]);
|
||||||
$message->useTemplate($emailTemplate);
|
$message->useTemplate($emailTemplate);
|
||||||
$this->mailer->send($message);
|
$this->mailer->send($message);
|
||||||
|
|
Loading…
Reference in New Issue