mirror of https://github.com/h44z/wg-portal.git
				
				
				
			Merge pull request #16 from xhit/patch-1
Fix email encryption type SSL/TLS
This commit is contained in:
		
						commit
						84e5359977
					
				|  | @ -61,7 +61,7 @@ func SendEmailWithAttachments(cfg MailConfig, sender, replyTo, subject, body, ht | ||||||
| 	} | 	} | ||||||
| 	switch cfg.Encryption { | 	switch cfg.Encryption { | ||||||
| 	case MailEncryptionTLS: | 	case MailEncryptionTLS: | ||||||
| 		srv.Encryption = mail.EncryptionTLS | 		srv.Encryption = mail.EncryptionSSLTLS | ||||||
| 	case MailEncryptionStartTLS: | 	case MailEncryptionStartTLS: | ||||||
| 		srv.Encryption = mail.EncryptionSTARTTLS | 		srv.Encryption = mail.EncryptionSTARTTLS | ||||||
| 	default: // MailEncryptionNone
 | 	default: // MailEncryptionNone
 | ||||||
|  |  | ||||||
		Loading…
	
		Reference in New Issue