[Email] Added email sender name
这个提交包含在:
		
							父节点
							
								
									bfcfad780b
								
							
						
					
					
						当前提交
						020fd96ef9
					
				
					共有  6 个文件被更改,包括 27 次插入 和 5 次删除
				
			
		|  | @ -232,10 +232,18 @@ class Options extends CI_Controller { | ||||||
| 					$this->session->set_flashdata('success', $this->lang->line('options_smtp_encryption_changed_to').$this->input->post('smtpEncryption')); | 					$this->session->set_flashdata('success', $this->lang->line('options_smtp_encryption_changed_to').$this->input->post('smtpEncryption')); | ||||||
| 				} | 				} | ||||||
| 
 | 
 | ||||||
| 				// Update smtpHost choice within the options system
 | 				// 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'); | 				$emailAddressupdate = $this->optionslib->update('emailAddress', $this->input->post('emailAddress'), 'yes'); | ||||||
| 
 | 
 | ||||||
| 				// If smtpHost update is complete set a flashsession with a success note
 | 				// If email address update is complete set a flashsession with a success note
 | ||||||
| 				if($emailAddressupdate == TRUE) { | 				if($emailAddressupdate == TRUE) { | ||||||
| 					$this->session->set_flashdata('success', $this->lang->line('options_email_address_changed_to').$this->input->post('emailAddress')); | 					$this->session->set_flashdata('success', $this->lang->line('options_email_address_changed_to').$this->input->post('emailAddress')); | ||||||
| 				} | 				} | ||||||
|  |  | ||||||
|  | @ -182,7 +182,7 @@ class Oqrs extends CI_Controller { | ||||||
| 	 | 	 | ||||||
| 				$message = $this->load->view('email/oqrs_request', $data,  TRUE); | 				$message = $this->load->view('email/oqrs_request', $data,  TRUE); | ||||||
| 				 | 				 | ||||||
| 				$this->email->from($this->optionslib->get_option('emailAddress'), 'Cloudlog OQRS'); | 				$this->email->from($this->optionslib->get_option('emailAddress'), $this->optionslib->get_option('emailSenderName')); | ||||||
| 				$this->email->to($email); | 				$this->email->to($email); | ||||||
| 				$this->email->reply_to($this->security->xss_clean($postdata['email']), strtoupper($data['callsign'])); | 				$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); | 				$message = $this->load->view('email/forgot_password', $this->data,  TRUE); | ||||||
| 
 | 
 | ||||||
| 				$this->email->from($this->optionslib->get_option('emailAddress'), 'Cloudlog'); | 				$this->email->from($this->optionslib->get_option('emailAddress'), $this->optionslib->get_option('emailSenderName')); | ||||||
| 				$this->email->to($this->input->post('email', true)); | 				$this->email->to($this->input->post('email', true)); | ||||||
| 
 | 
 | ||||||
| 				$this->email->subject('Cloudlog Account Password Reset'); | 				$this->email->subject('Cloudlog Account Password Reset'); | ||||||
|  |  | ||||||
|  | @ -33,6 +33,7 @@ $lang['options_email'] = 'Email'; | ||||||
| $lang['options_outgoing_protocol'] = 'Outgoing Protocol'; | $lang['options_outgoing_protocol'] = 'Outgoing Protocol'; | ||||||
| $lang['options_smtp_encryption'] = 'SMTP Encryption'; | $lang['options_smtp_encryption'] = 'SMTP Encryption'; | ||||||
| $lang['options_email_address'] = 'Email Address'; | $lang['options_email_address'] = 'Email Address'; | ||||||
|  | $lang['options_email_sender_name'] = 'Email Sender Name'; | ||||||
| $lang['options_smtp_host'] = 'SMTP Host'; | $lang['options_smtp_host'] = 'SMTP Host'; | ||||||
| $lang['options_smtp_port'] = 'SMTP Port'; | $lang['options_smtp_port'] = 'SMTP Port'; | ||||||
| $lang['options_smtp_username'] = 'SMTP Username'; | $lang['options_smtp_username'] = 'SMTP Username'; | ||||||
|  | @ -41,6 +42,8 @@ $lang['options_crlf'] = 'CRLF'; | ||||||
| $lang['options_newline'] = 'Newline'; | $lang['options_newline'] = 'Newline'; | ||||||
| $lang['options_outgoing_email_protocol_changed_to'] = 'Outgoing Email Protocol changed to '; | $lang['options_outgoing_email_protocol_changed_to'] = 'Outgoing Email Protocol changed to '; | ||||||
| $lang['options_smtp_encryption_changed_to'] = 'SMTP Encryption 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_host_changed_to'] = 'SMTP Host changed to '; | ||||||
| $lang['options_smtp_port_changed_to'] = 'SMTP Post changed to '; | $lang['options_smtp_port_changed_to'] = 'SMTP Post changed to '; | ||||||
| $lang['options_smtp_username_changed_to'] = 'SMTP Username 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_email'] = 'Email'; | ||||||
| $lang['options_outgoing_protocol'] = 'Protokoll für ausgehende Emails'; | $lang['options_outgoing_protocol'] = 'Protokoll für ausgehende Emails'; | ||||||
| $lang['options_smtp_encryption'] = 'SMTP Verschlüsselung'; | $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_host'] = 'SMTP Host'; | ||||||
| $lang['options_smtp_port'] = 'SMTP Port'; | $lang['options_smtp_port'] = 'SMTP Port'; | ||||||
| $lang['options_smtp_username'] = 'SMTP Benutzername'; | $lang['options_smtp_username'] = 'SMTP Benutzername'; | ||||||
|  | @ -40,6 +42,8 @@ $lang['options_crlf'] = 'CRLF'; | ||||||
| $lang['options_newline'] = 'Zeilenvorschub'; | $lang['options_newline'] = 'Zeilenvorschub'; | ||||||
| $lang['options_outgoing_email_protocol_changed_to'] = 'Protokoll für ausgehende Emails geändert zu '; | $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_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_host_changed_to'] = 'SMTP Host geändert zu '; | ||||||
| $lang['options_smtp_port_changed_to'] = 'SMTP Post changed to '; | $lang['options_smtp_port_changed_to'] = 'SMTP Post changed to '; | ||||||
| $lang['options_smtp_username_changed_to'] = 'SMTP Benutzername geändert zu '; | $lang['options_smtp_username_changed_to'] = 'SMTP Benutzername geändert zu '; | ||||||
|  |  | ||||||
|  | @ -51,6 +51,13 @@ | ||||||
|                             </select> |                             </select> | ||||||
|                         </div> |                         </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 if($this->optionslib->get_option('emailSenderName') != "") { echo $this->optionslib->get_option('emailSenderName'); } ?>"> | ||||||
|  |                             </div> | ||||||
|  |                         </div> | ||||||
|  | 
 | ||||||
|                         <div class="form-group row"> |                         <div class="form-group row"> | ||||||
|                         <label for="emailAddress" class="col-sm-2 col-form-label"><?php echo lang('options_email_address'); ?></label>
 |                         <label for="emailAddress" class="col-sm-2 col-form-label"><?php echo lang('options_email_address'); ?></label>
 | ||||||
|                             <div class="col-sm-10"> |                             <div class="col-sm-10"> | ||||||
|  |  | ||||||
		正在加载…
	
		在新工单中引用