forked from extern/egroupware
Calendar - reset meeting request to send using TO, email all participants uses BCC
This commit is contained in:
parent
c50d8007e2
commit
17d0f30cce
@ -1392,7 +1392,6 @@ class calendar_uiforms extends calendar_ui
|
|||||||
$vars = array(
|
$vars = array(
|
||||||
'menuaction' => 'mail.mail_compose.compose',
|
'menuaction' => 'mail.mail_compose.compose',
|
||||||
'mimeType' => $GLOBALS['egw_info']['user']['preferences']['mail']['composeOptions'] != 'text' ? 'html' : 'plain',
|
'mimeType' => $GLOBALS['egw_info']['user']['preferences']['mail']['composeOptions'] != 'text' ? 'html' : 'plain',
|
||||||
'preset[bcc]' => $to,
|
|
||||||
'preset[subject]' => $event['title'],
|
'preset[subject]' => $event['title'],
|
||||||
'preset[body]' => $body,
|
'preset[body]' => $body,
|
||||||
'preset[name]' => 'event.ics',
|
'preset[name]' => 'event.ics',
|
||||||
@ -1400,6 +1399,7 @@ class calendar_uiforms extends calendar_ui
|
|||||||
'preset[type]' => 'text/calendar'.($asrequest?'; method=REQUEST':''),
|
'preset[type]' => 'text/calendar'.($asrequest?'; method=REQUEST':''),
|
||||||
'preset[size]' => filesize($ics_file),
|
'preset[size]' => filesize($ics_file),
|
||||||
);
|
);
|
||||||
|
$vars[$asrequest?'preset[to]': 'preset[bcc]'] = $to;
|
||||||
if ($asrequest) $vars['preset[msg]'] = lang('You attempt to mail a meetingrequest to the recipients above. Depending on the client this mail is opened with, the recipient may or may not see the mailbody below, but only see the meeting request attached.');
|
if ($asrequest) $vars['preset[msg]'] = lang('You attempt to mail a meetingrequest to the recipients above. Depending on the client this mail is opened with, the recipient may or may not see the mailbody below, but only see the meeting request attached.');
|
||||||
$response = Api\Json\Response::get();
|
$response = Api\Json\Response::get();
|
||||||
$response->call('app.calendar.custom_mail', $vars);
|
$response->call('app.calendar.custom_mail', $vars);
|
||||||
|
Loading…
Reference in New Issue
Block a user