Skip to content

Commit

Permalink
✨ add wrapper for verifying an email
Browse files Browse the repository at this point in the history
  • Loading branch information
acidjazz committed Apr 26, 2024
1 parent b29205e commit 46063df
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions aws/aws.go
Original file line number Diff line number Diff line change
Expand Up @@ -145,6 +145,12 @@ func getExtension(bytes []byte) (string, string, error) {
return extension, contentType, nil
}

func VerifyEmail(to string) (*ses.VerifyEmailIdentityOutput, error) {
return SES().VerifyEmailIdentity(context.TODO(), &ses.VerifyEmailIdentityInput{
EmailAddress: aws.String(to),
})
}

func SendEmail(to string, subject string, body string, from string) (*ses.SendEmailOutput, error) {
return SES().SendEmail(context.TODO(), &ses.SendEmailInput{
Destination: &types.Destination{
Expand Down

0 comments on commit 46063df

Please sign in to comment.