More SMTP customization (#1372)
* Allow SMTP auth method customization * Add SMTP openssl_verify_mode option support Allows one use self-signed certs with their SMTP server. * Add SMTP enable_starttls_auto option support
This commit is contained in:
		
					parent
					
						
							
								f690320fb9
							
						
					
				
			
			
				commit
				
					
						0dbbc16c69
					
				
			
		
					 4 changed files with 31 additions and 1 deletions
				
			
		|  | @ -99,7 +99,9 @@ Rails.application.configure do | |||
|     :user_name      => ENV['SMTP_LOGIN'], | ||||
|     :password       => ENV['SMTP_PASSWORD'], | ||||
|     :domain         => ENV['SMTP_DOMAIN'] || config.x.local_domain, | ||||
|     :authentication => :plain, | ||||
|     :authentication => ENV['SMTP_AUTH_METHOD'] || :plain, | ||||
|     :openssl_verify_mode => ENV['SMTP_OPENSSL_VERIFY_MODE'] || 'peer', | ||||
|     :enable_starttls_auto => ENV['SMTP_ENABLE_STARTTLS_AUTO'] || true, | ||||
|   } | ||||
| 
 | ||||
|   config.action_mailer.delivery_method = :smtp | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue