---
title: "Discussion on \"How to send emails using Go(golang).\" | Hashnode"
description: "Discussion on \"How to send emails using Go(golang).\". Send emails using the go standard library (net/smtp)."
url: "https://hashnode.com/posts/how-to-send-emails-using-gogolang/613ce6bf1821961e2551f0bb"
---

[Feed](https://hashnode.com/feed) /

Discussion

# [How to send emails using Go(golang).](https://blog.fuadolatunji.me/how-to-send-emails-using-gogolang?utm_source=hashnode&utm_medium=feed)

Send emails using the go standard library (net/smtp).

Sep 11, 2021 · 2 min read · blog.fuadolatunji.me  
Read the article

-   [#go](https://hashnode.com/tag/go)
-   [#github](https://hashnode.com/tag/github)
-   [#git](https://hashnode.com/tag/git)
-   [#programming-blogs](https://hashnode.com/tag/programming-blogs)

## Written by

[Fuad Olatunji](https://hashnode.com/@fuadop)

@fuadop

  
[View profile](https://hashnode.com/@fuadop)

Technology Enthusiast

## Responses 1

Markdown supported · ⌘↵ to post

[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.
