Skip to content

Commit

Permalink
feat(notification/backend/email): update ondrejsika/gosendmail to v0.…
Browse files Browse the repository at this point in the history
…4.0 and allow to use username different from email
  • Loading branch information
ondrejsika committed Jan 28, 2023
1 parent 64f8390 commit ddffe9c
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 4 deletions.
2 changes: 1 addition & 1 deletion go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ require (
github.com/go-resty/resty/v2 v2.7.0
github.com/gorilla/mux v1.8.0
github.com/olekukonko/tablewriter v0.0.5
github.com/ondrejsika/gosendmail v0.3.0
github.com/ondrejsika/gosendmail v0.4.0
github.com/ondrejsika/notion-backup v0.1.0
github.com/rs/zerolog v1.25.0
github.com/spf13/cobra v1.2.1
Expand Down
4 changes: 2 additions & 2 deletions go.sum
Original file line number Diff line number Diff line change
Expand Up @@ -283,8 +283,8 @@ github.com/niemeyer/pretty v0.0.0-20200227124842-a10e7caefd8e/go.mod h1:zD1mROLA
github.com/nxadm/tail v1.4.4/go.mod h1:kenIhsEOeOJmVchQTgglprH7qJGnHDVpk1VPCcaMI8A=
github.com/olekukonko/tablewriter v0.0.5 h1:P2Ga83D34wi1o9J6Wh1mRuqd4mF/x/lgBS7N7AbDhec=
github.com/olekukonko/tablewriter v0.0.5/go.mod h1:hPp6KlRPjbx+hW8ykQs1w3UBbZlj6HuIJcUGPhkA7kY=
github.com/ondrejsika/gosendmail v0.3.0 h1:Zpp2O9LOL/M9Dxj0qOQ2zk0/40ncMQPgP8zJakEsKj8=
github.com/ondrejsika/gosendmail v0.3.0/go.mod h1:dDI+roxX0VEWSwPJYPGWIa3+8SdAWR5AX4JocFKNQAo=
github.com/ondrejsika/gosendmail v0.4.0 h1:ZJxU33yQJg/k2ENOtsVOLg1s853rxF9+093uFknLauM=
github.com/ondrejsika/gosendmail v0.4.0/go.mod h1:dDI+roxX0VEWSwPJYPGWIa3+8SdAWR5AX4JocFKNQAo=
github.com/ondrejsika/notion-backup v0.1.0 h1:3PX5XU+ijY1kHhjvn9RwfPRN+8PzPLBjKBLhdho6ye4=
github.com/ondrejsika/notion-backup v0.1.0/go.mod h1:EbIrCulQ+dh2uNP4JFrUKSVQonRvP/42wfpsV89Jz94=
github.com/onsi/ginkgo v0.0.0-20170829012221-11459a886d9c/go.mod h1:lLunBs/Ym6LB5Z9jYTR76FiuTmxDTDusOGeTQH+WWjE=
Expand Down
3 changes: 2 additions & 1 deletion notification/backend/email/email.go
Original file line number Diff line number Diff line change
Expand Up @@ -52,8 +52,9 @@ func (b EmailBackend) SendMail(
err := gosendmail.GoRawSendMail(
b.SmtpHost,
b.SmtpPort,
b.From,
b.Username,
b.Password,
b.From,
to,
rawMessage,
)
Expand Down

0 comments on commit ddffe9c

Please sign in to comment.