Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[bug] aws ses send email fail ? #87

Open
clhlc opened this issue Dec 10, 2020 · 2 comments
Open

[bug] aws ses send email fail ? #87

clhlc opened this issue Dec 10, 2020 · 2 comments
Labels
bug Something isn't working

Comments

@clhlc
Copy link

clhlc commented Dec 10, 2020

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:


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{"[email protected]"}
	msg := []byte("To: [email protected]\r\n" +
		"Subject: discount Gophers!\r\n" +
		"\r\n" +
		"This is the email body.\r\n")
	err := smtp.SendMail("server:587", auth, "[email protected]", to, msg)
	if err != nil {
		log.Fatal(err)
	}
}
@LOZORD
Copy link
Contributor

LOZORD commented Dec 10, 2020

Hi Chao,
Based on the way we do auth now, can you modify your notifier config at all to use the SES strings? I'm not familiar with SES myself, but setting those values Should Just Work (hopefully).

@LOZORD LOZORD added the bug Something isn't working label Dec 10, 2020
@clhlc
Copy link
Author

clhlc commented Dec 11, 2020

@LOZORD I already modify the notifier config and upload to gcs. It always error 554.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants