Skip to content

Commit 7bddd91

Browse files
committed
Export AuthType
Fix #40
1 parent 3776dc6 commit 7bddd91

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

email.go

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ SMTPServer represents a SMTP Server
3434
If authentication is CRAM-MD5 then the Password is the Secret
3535
*/
3636
type SMTPServer struct {
37-
Authentication authType
37+
Authentication AuthType
3838
Encryption Encryption
3939
Username string
4040
Password string
@@ -117,11 +117,11 @@ func (contentType contentType) string() string {
117117
return contentTypes[contentType]
118118
}
119119

120-
type authType int
120+
type AuthType int
121121

122122
const (
123123
// AuthPlain implements the PLAIN authentication
124-
AuthPlain authType = iota
124+
AuthPlain AuthType = iota
125125
// AuthLogin implements the LOGIN authentication
126126
AuthLogin
127127
// AuthCRAMMD5 implements the CRAM-MD5 authentication
@@ -651,7 +651,7 @@ func dial(host string, port string, encryption Encryption, config *tls.Config) (
651651

652652
// smtpConnect connects to the smtp server and starts TLS and passes auth
653653
// 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) {
655655
// connect to the mail server
656656
c, err := dial(host, port, encryption, config)
657657

0 commit comments

Comments
 (0)