[Email] Added email address option
这个提交包含在:
父节点
ecc95c6e6c
当前提交
bfcfad780b
共有 5 个文件被更改,包括 17 次插入 和 2 次删除
|
|
@ -232,6 +232,14 @@ class Options extends CI_Controller {
|
|||
$this->session->set_flashdata('success', $this->lang->line('options_smtp_encryption_changed_to').$this->input->post('smtpEncryption'));
|
||||
}
|
||||
|
||||
// Update smtpHost choice within the options system
|
||||
$emailAddressupdate = $this->optionslib->update('emailAddress', $this->input->post('emailAddress'), 'yes');
|
||||
|
||||
// If smtpHost update is complete set a flashsession with a success note
|
||||
if($emailAddressupdate == TRUE) {
|
||||
$this->session->set_flashdata('success', $this->lang->line('options_email_address_changed_to').$this->input->post('emailAddress'));
|
||||
}
|
||||
|
||||
// Update smtpHost choice within the options system
|
||||
$smtpHostupdate = $this->optionslib->update('smtpHost', $this->input->post('smtpHost'), 'yes');
|
||||
|
||||
|
|
|
|||
|
|
@ -182,7 +182,7 @@ class Oqrs extends CI_Controller {
|
|||
|
||||
$message = $this->load->view('email/oqrs_request', $data, TRUE);
|
||||
|
||||
$this->email->from('noreply@cloudlog.co.uk', 'Cloudlog');
|
||||
$this->email->from($this->optionslib->get_option('emailAddress'), 'Cloudlog OQRS');
|
||||
$this->email->to($email);
|
||||
$this->email->reply_to($this->security->xss_clean($postdata['email']), strtoupper($data['callsign']));
|
||||
|
||||
|
|
|
|||
|
|
@ -608,7 +608,7 @@ class User extends CI_Controller {
|
|||
|
||||
$message = $this->load->view('email/forgot_password', $this->data, TRUE);
|
||||
|
||||
$this->email->from('noreply@cloudlog.co.uk', 'Cloudlog');
|
||||
$this->email->from($this->optionslib->get_option('emailAddress'), 'Cloudlog');
|
||||
$this->email->to($this->input->post('email', true));
|
||||
|
||||
$this->email->subject('Cloudlog Account Password Reset');
|
||||
|
|
|
|||
|
|
@ -32,6 +32,7 @@ $lang['options_radio_timeout_warning_changed_to'] = 'Radio Timeout Warning chang
|
|||
$lang['options_email'] = 'Email';
|
||||
$lang['options_outgoing_protocol'] = 'Outgoing Protocol';
|
||||
$lang['options_smtp_encryption'] = 'SMTP Encryption';
|
||||
$lang['options_email_address'] = 'Email Address';
|
||||
$lang['options_smtp_host'] = 'SMTP Host';
|
||||
$lang['options_smtp_port'] = 'SMTP Port';
|
||||
$lang['options_smtp_username'] = 'SMTP Username';
|
||||
|
|
|
|||
|
|
@ -51,6 +51,12 @@
|
|||
</select>
|
||||
</div>
|
||||
|
||||
<div class="form-group row">
|
||||
<label for="emailAddress" class="col-sm-2 col-form-label"><?php echo lang('options_email_address'); ?></label>
|
||||
<div class="col-sm-10">
|
||||
<input type="text" name="emailAddress" class="form-control" id="emailAddress" value="<?php if($this->optionslib->get_option('emailAddress') != "") { echo $this->optionslib->get_option('emailAddress'); } ?>">
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="form-group row">
|
||||
<label for="smtpHost" class="col-sm-2 col-form-label"><?php echo lang('options_smtp_host'); ?></label>
|
||||
|
|
|
|||
正在加载…
在新工单中引用