Skip to content

Commit

Permalink
Make reply to optional
Browse files Browse the repository at this point in the history
  • Loading branch information
davidbanham committed Sep 19, 2019
1 parent b585a87 commit f040e53
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions notifications.go
Original file line number Diff line number Diff line change
Expand Up @@ -82,10 +82,14 @@ func SendEmail(email Email) (err error) {
},
},
Source: aws.String(email.From),
ReplyToAddresses: []*string{
}

if email.ReplyTo != "" {
params.ReplyToAddresses = []*string{
aws.String(email.ReplyTo),
},
}
}

_, err = svc.SendEmail(params)

return
Expand Down

0 comments on commit f040e53

Please sign in to comment.