Fix other calls to Mail::send to provide ID
This commit is contained in:
parent
3d4e11045a
commit
1c4fbc9fdf
1 changed files with 2 additions and 1 deletions
|
@ -69,12 +69,13 @@ function message_post(App $a)
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
$sender_id = DI::userSession()->getLocalUserId();
|
||||||
$replyto = !empty($_REQUEST['replyto']) ? trim($_REQUEST['replyto']) : '';
|
$replyto = !empty($_REQUEST['replyto']) ? trim($_REQUEST['replyto']) : '';
|
||||||
$subject = !empty($_REQUEST['subject']) ? trim($_REQUEST['subject']) : '';
|
$subject = !empty($_REQUEST['subject']) ? trim($_REQUEST['subject']) : '';
|
||||||
$body = !empty($_REQUEST['body']) ? Strings::escapeHtml(trim($_REQUEST['body'])) : '';
|
$body = !empty($_REQUEST['body']) ? Strings::escapeHtml(trim($_REQUEST['body'])) : '';
|
||||||
$recipient = !empty($_REQUEST['recipient']) ? intval($_REQUEST['recipient']) : 0;
|
$recipient = !empty($_REQUEST['recipient']) ? intval($_REQUEST['recipient']) : 0;
|
||||||
|
|
||||||
$ret = Mail::send($recipient, $body, $subject, $replyto);
|
$ret = Mail::send($sender_id, $recipient, $body, $subject, $replyto);
|
||||||
$norecip = false;
|
$norecip = false;
|
||||||
|
|
||||||
switch ($ret) {
|
switch ($ret) {
|
||||||
|
|
Loading…
Reference in a new issue