Fix other calls to Mail::send to provide ID
This commit is contained in:
parent
3d4e11045a
commit
1c4fbc9fdf
|
@ -69,12 +69,13 @@ function message_post(App $a)
|
|||
return;
|
||||
}
|
||||
|
||||
$sender_id = DI::userSession()->getLocalUserId();
|
||||
$replyto = !empty($_REQUEST['replyto']) ? trim($_REQUEST['replyto']) : '';
|
||||
$subject = !empty($_REQUEST['subject']) ? trim($_REQUEST['subject']) : '';
|
||||
$body = !empty($_REQUEST['body']) ? Strings::escapeHtml(trim($_REQUEST['body'])) : '';
|
||||
$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;
|
||||
|
||||
switch ($ret) {
|
||||
|
|
Loading…
Reference in New Issue
Block a user