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

feat: add sendgrid bundle for sending emails #299

Merged
merged 1 commit into from
Jan 2, 2025

Conversation

njhale
Copy link
Member

@njhale njhale commented Dec 23, 2024

@njhale
Copy link
Member Author

njhale commented Dec 23, 2024

having some issues with email verification. going to move to draft until I resolve that

works after sendgrid email verification.

@njhale njhale marked this pull request as draft December 23, 2024 20:38
@njhale njhale marked this pull request as ready for review December 26, 2024 15:29
Comment on lines 14 to 23
// 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")
}
Copy link
Collaborator

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.

Copy link
Member Author

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

Copy link
Member Author

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.

@njhale njhale force-pushed the feat/sendgrid-mvp branch 3 times, most recently from 6aef696 to a7a6c66 Compare December 31, 2024 19:31
@njhale njhale requested a review from g-linville December 31, 2024 19:46
@@ -0,0 +1,6 @@

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nit: extra line?

@njhale njhale merged commit 2054f97 into obot-platform:main Jan 2, 2025
@njhale njhale deleted the feat/sendgrid-mvp branch January 2, 2025 15:06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants