public function post_id_handler()
 {
     $dbc = $this->connection;
     $settings = $this->config->get('PLUGIN_SETTINGS');
     $dbc->selectDB($settings['ScheduledEmailDB']);
     $template = new ScheduledEmailTemplatesModel($dbc);
     $template->scheduledEmailTemplateID($this->id);
     $template->name(FormLib::get('name'));
     $template->subject(FormLib::get('subject'));
     $template->hasText(FormLib::get('hasText', 0));
     $template->textCopy(FormLib::get('textCopy'));
     $template->hasHtml(FormLib::get('hasHTML', 0));
     $template->htmlCopy(FormLib::get('htmlCopy'));
     $template->save();
     return $_SERVER['PHP_SELF'] . '?id=' . $this->id;
 }