@@ -34,7 +34,7 @@ SMTPServer represents a SMTP Server
34
34
If authentication is CRAM-MD5 then the Password is the Secret
35
35
*/
36
36
type SMTPServer struct {
37
- Authentication authType
37
+ Authentication AuthType
38
38
Encryption Encryption
39
39
Username string
40
40
Password string
@@ -117,11 +117,11 @@ func (contentType contentType) string() string {
117
117
return contentTypes [contentType ]
118
118
}
119
119
120
- type authType int
120
+ type AuthType int
121
121
122
122
const (
123
123
// AuthPlain implements the PLAIN authentication
124
- AuthPlain authType = iota
124
+ AuthPlain AuthType = iota
125
125
// AuthLogin implements the LOGIN authentication
126
126
AuthLogin
127
127
// AuthCRAMMD5 implements the CRAM-MD5 authentication
@@ -651,7 +651,7 @@ func dial(host string, port string, encryption Encryption, config *tls.Config) (
651
651
652
652
// smtpConnect connects to the smtp server and starts TLS and passes auth
653
653
// if necessary
654
- func smtpConnect (host , port , helo string , a auth , at authType , encryption Encryption , config * tls.Config ) (* smtpClient , error ) {
654
+ func smtpConnect (host , port , helo string , a auth , at AuthType , encryption Encryption , config * tls.Config ) (* smtpClient , error ) {
655
655
// connect to the mail server
656
656
c , err := dial (host , port , encryption , config )
657
657
0 commit comments