Browse Source

[Email] client quit instead of close

Signed-off-by: Vishal Rana <vr@labstack.com>
Vishal Rana 7 years ago
parent
commit
2a618302b9
1 changed files with 1 additions and 1 deletions
  1. 1 1
      email/email.go

+ 1 - 1
email/email.go

@@ -129,7 +129,7 @@ func (e *Email) Send(m *Message) (err error) {
 	if err != nil {
 		return
 	}
-	defer c.Close()
+	defer c.Quit()
 
 	// Check if TLS is required
 	if ok, _ := c.Extension("STARTTLS"); ok {