$mail_subject = isset($_REQUEST['mail_subject']) ? smartstrip($_REQUEST['mail_subject']) : ''; $mail_body = isset($_REQUEST['mail_body']) ? smartstrip($_REQUEST['mail_body']) : ''; $mail_from = isset($_REQUEST['mail_from']) ? $_REQUEST['mail_from'] : 0; $mail_to = isset($_REQUEST['mail_to']) ? $_REQUEST['mail_to'] : ''; $mail_cc = isset($_REQUEST['mail_cc']) ? $_REQUEST['mail_cc'] : ''; $mail_bcc = isset($_REQUEST['mail_bcc']) ? $_REQUEST['mail_bcc'] : ''; $uid = isset($_REQUEST['uid']) ? $_REQUEST['uid'] : 0; $add_recievers = isset($_POST['add_recievers']) ? $_POST['add_recievers'] : ''; $mailing_group_id = isset($_REQUEST['mailing_group_id']) ? $_REQUEST['mailing_group_id'] : 0; $htmlarea = new htmlarea(); if ($htmlarea->browser_is_supported()) { $wysiwyg = true; $em_settings = $email->get_settings($GO_SECURITY->user_id); $content_type = isset($_POST['content_type']) ? $_POST['content_type'] : $em_settings['send_format']; if ($content_type == 'text/PLAIN') { $htmlarea->force_textmode(); } } else { $content_type = 'text/PLAIN'; $wysiwyg = false; } $page_title = $ml_compose; $sendaction = isset($_REQUEST['sendaction']) ? $_REQUEST['sendaction'] : ''; $attachments_size = 0; function add_unknown_reciepent($email, $addressbook) { global $GO_SECURITY, $ab; $known = false; $ab->search_contacts($GO_SECURITY->user_id, $email, 'email'); while ($ab->next_record()) { if ($GO_SECURITY->has_permission($GO_SECURITY->user_id, $ab->f('acl_read')) || $GO_SECURITY->has_permission($GO_SECURITY->user_id, $ab->f('acl_write'))) {