-
Notifications
You must be signed in to change notification settings - Fork 15
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
feat: add sendgrid bundle for sending emails #299
Conversation
0d8b94c
to
d73255a
Compare
works after sendgrid email verification. |
sendgrid/cmd/send.go
Outdated
// Retrieve and trim environment variables | ||
sendGridAPIKey := strings.TrimSpace(os.Getenv("SENDGRID_API_KEY")) | ||
if sendGridAPIKey == "" { | ||
return "", fmt.Errorf("SENDGRID_API_KEY is not set") | ||
} | ||
|
||
fromName := strings.TrimSpace(os.Getenv("SENDGRID_FROM_NAME")) | ||
if fromName == "" { | ||
return "", fmt.Errorf("SENDGRID_FROM_NAME is not set") | ||
} | ||
|
||
fromEmail := strings.TrimSpace(os.Getenv("SENDGRID_FROM_EMAIL")) | ||
if fromEmail == "" { | ||
return "", fmt.Errorf("SENDGRID_FROM_EMAIL is not set") | ||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Are these supposed to come from a credential tool? There is no credential tool referenced in the tool.gpt
file.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yeah, this is going to be updated shortly
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Updated to use credentials tool.
6aef696
to
a7a6c66
Compare
Signed-off-by: Nick Hale <[email protected]>
a7a6c66
to
4e12496
Compare
@@ -0,0 +1,6 @@ | |||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nit: extra line?
Depends on obot-platform/obot#1086
Addresses obot-platform/obot#918