mirror of
				https://github.com/h44z/wg-portal.git
				synced 2025-11-03 23:56:18 +00:00 
			
		
		
		
	Fix email encryption type SSL/TLS
mail.EncryptionTLS is deprecated and is the same like mail.EncryptionSTARTTLS The correct here is mail.EncryptionSSLTLS
This commit is contained in:
		
				
					committed by
					
						
						GitHub
					
				
			
			
				
	
			
			
			
						parent
						
							ab02f656be
						
					
				
				
					commit
					5ac45b7a4f
				
			@@ -61,7 +61,7 @@ func SendEmailWithAttachments(cfg MailConfig, sender, replyTo, subject, body, ht
 | 
			
		||||
	}
 | 
			
		||||
	switch cfg.Encryption {
 | 
			
		||||
	case MailEncryptionTLS:
 | 
			
		||||
		srv.Encryption = mail.EncryptionTLS
 | 
			
		||||
		srv.Encryption = mail.EncryptionSSLTLS
 | 
			
		||||
	case MailEncryptionStartTLS:
 | 
			
		||||
		srv.Encryption = mail.EncryptionSTARTTLS
 | 
			
		||||
	default: // MailEncryptionNone
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user