kopia lustrzana https://github.com/magicbug/Cloudlog
Merge pull request #2204 from AndreasK79/email_address_sender
commit
6680d8948d
|
@ -232,6 +232,22 @@ class Options extends CI_Controller {
|
|||
$this->session->set_flashdata('success', $this->lang->line('options_smtp_encryption_changed_to').$this->input->post('smtpEncryption'));
|
||||
}
|
||||
|
||||
// Update email sender name within the options system
|
||||
$emailSenderNameupdate = $this->optionslib->update('emailSenderName', $this->input->post('emailSenderName'), 'yes');
|
||||
|
||||
// If email address update is complete set a flashsession with a success note
|
||||
if($emailSenderNameupdate == TRUE) {
|
||||
$this->session->set_flashdata('success', $this->lang->line('options_email_sender_name_changed_to').$this->input->post('emailSenderName'));
|
||||
}
|
||||
|
||||
// Update email address choice within the options system
|
||||
$emailAddressupdate = $this->optionslib->update('emailAddress', $this->input->post('emailAddress'), 'yes');
|
||||
|
||||
// If email address 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');
|
||||
|
||||
|
|
|
@ -181,8 +181,8 @@ class Oqrs extends CI_Controller {
|
|||
$data['usermessage'] = $this->security->xss_clean($postdata['message']);
|
||||
|
||||
$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'), $this->optionslib->get_option('emailSenderName'));
|
||||
$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'), $this->optionslib->get_option('emailSenderName'));
|
||||
$this->email->to($this->input->post('email', true));
|
||||
|
||||
$this->email->subject('Cloudlog Account Password Reset');
|
||||
|
|
|
@ -32,6 +32,8 @@ $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_email_sender_name'] = 'Email Sender Name';
|
||||
$lang['options_smtp_host'] = 'SMTP Host';
|
||||
$lang['options_smtp_port'] = 'SMTP Port';
|
||||
$lang['options_smtp_username'] = 'SMTP Username';
|
||||
|
@ -40,6 +42,8 @@ $lang['options_crlf'] = 'CRLF';
|
|||
$lang['options_newline'] = 'Newline';
|
||||
$lang['options_outgoing_email_protocol_changed_to'] = 'Outgoing Email Protocol changed to ';
|
||||
$lang['options_smtp_encryption_changed_to'] = 'SMTP Encryption changed to ';
|
||||
$lang['options_email_address_changed_to'] = 'Email Address changed to ';
|
||||
$lang['options_email_sender_name_changed_to'] = 'Email Sender Name changed to ';
|
||||
$lang['options_smtp_host_changed_to'] = 'SMTP Host changed to ';
|
||||
$lang['options_smtp_port_changed_to'] = 'SMTP Post changed to ';
|
||||
$lang['options_smtp_username_changed_to'] = 'SMTP Username changed to ';
|
||||
|
|
|
@ -32,6 +32,8 @@ $lang['options_radio_timeout_warning_changed_to'] = 'Radio Timeout Warnung geän
|
|||
$lang['options_email'] = 'Email';
|
||||
$lang['options_outgoing_protocol'] = 'Protokoll für ausgehende Emails';
|
||||
$lang['options_smtp_encryption'] = 'SMTP Verschlüsselung';
|
||||
$lang['options_email_address'] = 'Emailaddresse';
|
||||
$lang['options_email_sender_name'] = 'Email Absendername';
|
||||
$lang['options_smtp_host'] = 'SMTP Host';
|
||||
$lang['options_smtp_port'] = 'SMTP Port';
|
||||
$lang['options_smtp_username'] = 'SMTP Benutzername';
|
||||
|
@ -40,6 +42,8 @@ $lang['options_crlf'] = 'CRLF';
|
|||
$lang['options_newline'] = 'Zeilenvorschub';
|
||||
$lang['options_outgoing_email_protocol_changed_to'] = 'Protokoll für ausgehende Emails geändert zu ';
|
||||
$lang['options_smtp_encryption_changed_to'] = 'SMTP Verschlüsselung geändert zu ';
|
||||
$lang['options_email_address_changed_to'] = 'Emailadresse geändert zu ';
|
||||
$lang['options_email_sender_name_changed_to'] = 'Email Absendername geändert zu ';
|
||||
$lang['options_smtp_host_changed_to'] = 'SMTP Host geändert zu ';
|
||||
$lang['options_smtp_port_changed_to'] = 'SMTP Post changed to ';
|
||||
$lang['options_smtp_username_changed_to'] = 'SMTP Benutzername geändert zu ';
|
||||
|
|
|
@ -51,6 +51,19 @@
|
|||
</select>
|
||||
</div>
|
||||
|
||||
<div class="form-group row">
|
||||
<label for="emailSenderName" class="col-sm-2 col-form-label"><?php echo lang('options_email_sender_name'); ?></label>
|
||||
<div class="col-sm-10">
|
||||
<input type="text" name="emailSenderName" class="form-control" id="emailSenderName" value="<?php echo ($this->optionslib->get_option('emailSenderName') == "" ? 'Cloudlog' : $this->optionslib->get_option('emailSenderName'));?>">
|
||||
</div>
|
||||
</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>
|
||||
|
|
Ładowanie…
Reference in New Issue