GoogleCloudPlatform / GoogleCloudPlatform/cloud-build-notifiers

[bug] aws ses send email fail ?

Open
#87 3 comments 0 reactions 0 assignees View on GitHub
bug
Dominant language
Go
Stars
157
Forks
144
Avg merge
1h 34m
Merged PRs (30d)
1

Description

Hi,

I use aws ses to send cloudbuild email ,bu in the cloud run log I can see some error:
`E1210 04:12:44.669479 1 notifiers.go:449] failed to run SendNotification: failed to send email: 554 Message rejected: Email address is not verified. The following identities failed the check in region US-EAST-1: XXXXXXXXXXXXXXXX`(My ses key)

But I write a easy go code to test ses send, is success.

there is My test code:

```package main

import (
"log"
"net/smtp"
)

func main() {
// Set up authentication information.
auth := smtp.PlainAuth("", "ses-key", "ses-secret", "ses-server")

// Connect to the server, authenticate, set the sender and recipient,
// and send the email all in one step.
to := []string{"recipient@example.net"}
msg := []byte("To: recipient@example.net\r\n" +
"Subject: discount Gophers!\r\n" +
"\r\n" +
"This is the email body.\r\n")
err := smtp.SendMail("server:587", auth, "sender@example.org", to, msg)
if err != nil {
log.Fatal(err)
}
}

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.