---
title: "Comment by Kenneth on \"How to send emails using Go(golang).\" | Hashnode"
description: "I think the reason you can&#39;t communiate off of port 587 is because of Go, not gmail. The go doc for the PlainAuth function says: func PlainAuth (identity, u"
url: "https://hashnode.com/posts/how-to-send-emails-using-gogolang/613ce6bf1821961e2551f0bb/comment/619412153011d8453957df52"
---

[Discussion](https://hashnode.com/posts/how-to-send-emails-using-gogolang/613ce6bf1821961e2551f0bb)

Comment [How to send emails using Go(golang).](https://hashnode.com/posts/how-to-send-emails-using-gogolang/613ce6bf1821961e2551f0bb)

[Kenneth](https://hashnode.com/@kendfss)

[Nov 16, 2021](https://hashnode.com/posts/how-to-send-emails-using-gogolang/613ce6bf1821961e2551f0bb/comment/619412153011d8453957df52)

I think the reason you can't communiate off of port 587 is because of Go, not gmail. The go doc for the PlainAuth function says:

```
func PlainAuth(identity, username, password, host string) Auth
    ...
    PlainAuth will only send the credentials if the connection is using TLS or
    is connected to localhost. Otherwise authentication will fail with an error,
    without sending the credentials.
```

587 is the standard outgoing port for TLS communications via SMTP.
