| | |
| | | |
| | | if (!isset($_SESSION['compose']['id'])) |
| | | { |
| | | $_action = 'list'; |
| | | rcmail_overwrite_action('list'); |
| | | return; |
| | | } |
| | | |
| | |
| | | |
| | | |
| | | /****** check submission and compose message ********/ |
| | | |
| | | |
| | | if (empty($_POST['_to']) && empty($_POST['_subject']) && $_POST['_message']) |
| | | { |
| | | show_message("sendingfailed", 'error'); |
| | | rcmail_overwrite_action('compose'); |
| | | return; |
| | | } |
| | | |
| | | |
| | | $mailto_regexp = array('/,\s*[\r\n]+/', '/[\r\n]+/', '/,\s*$/m'); |
| | |
| | | // return to compose page if sending failed |
| | | if (!$sent) |
| | | { |
| | | $_action = 'compose'; |
| | | $OUTPUT->add_script(sprintf("\n%s.set_env('action', '%s');", $JS_OBJECT_NAME, $_action)); |
| | | show_message("sendingfailed", 'error'); |
| | | rcmail_overwrite_action('compose'); |
| | | return; |
| | | } |
| | | |