mirror of
				https://git.code.sf.net/p/seeddms/code
				synced 2025-10-31 05:11:27 +00:00 
			
		
		
		
	set socket_options, do not check ssl peer name and certificate
This commit is contained in:
		
							parent
							
								
									afcea34cf8
								
							
						
					
					
						commit
						261c65033d
					
				|  | @ -118,9 +118,13 @@ class SeedDMS_EmailNotify extends SeedDMS_Notify { | ||||||
| 			} | 			} | ||||||
| 			if($this->smtp_user) { | 			if($this->smtp_user) { | ||||||
| 				$mail_params['auth'] = true; | 				$mail_params['auth'] = true; | ||||||
|  | 				// $mail_params['debug'] = true;
 | ||||||
| 				$mail_params['username'] = $this->smtp_user; | 				$mail_params['username'] = $this->smtp_user; | ||||||
| 				$mail_params['password'] = $this->smtp_password; | 				$mail_params['password'] = $this->smtp_password; | ||||||
| 			} | 			} | ||||||
|  | 			/* See ticket #384 */ | ||||||
|  | 			$mail_params['socket_options'] = array('ssl' => array('verify_peer' => false, 'verify_peer_name' => false)); | ||||||
|  | 
 | ||||||
| 			$mail = Mail::factory('smtp', $mail_params); | 			$mail = Mail::factory('smtp', $mail_params); | ||||||
| 		} else { | 		} else { | ||||||
| 			$mail = Mail::factory('mail', $mail_params); | 			$mail = Mail::factory('mail', $mail_params); | ||||||
|  |  | ||||||
		Loading…
	
		Reference in New Issue
	
	Block a user
	 Uwe Steinmann
						Uwe Steinmann