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

enhance: add no-reply email to server config #1086

Merged
merged 1 commit into from
Dec 31, 2024

Conversation

njhale
Copy link
Member

@njhale njhale commented Dec 31, 2024

Add a no-reply email address option to the Obot server configuration. This setting is passed down to running tools so that the sendgrid tool can send emails using a pre-configured no-reply address.

Add a no-reply email address option to the Obot server configuration.
This setting is passed down to running tools so that the sendgrid tool
can send emails using a pre-configured no-reply address.

Signed-off-by: Nick Hale <[email protected]>
gatewayClient *client.Client
tokenService *jwt.TokenService
events *events.Emitter
noReplyEmailAddress string
Copy link
Member Author

@njhale njhale Dec 31, 2024

Choose a reason for hiding this comment

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

should this configuration name specifically mention SendGrid; e.g. 'sendGridNoReplyAddress`?

Should it even be a full address? Maybe something like emailDomain (to match the version API) is better, and we just use a default address like obot-noreply@<emailDomain>?

(these questions apply for the environment variable names plumbed through as well)

Copy link
Contributor

Choose a reason for hiding this comment

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

I don't think it should specifically mention SendGrid. It is likely this would be useful for other similar tools we might add in the future.

I do like the idea of just using an emailDomain rather than requiring them to specify the full address, but I personally think it is fine either way.

@njhale njhale merged commit 58dd08f into obot-platform:main Dec 31, 2024
2 checks passed
@njhale njhale deleted the enhance/tool-noreply-email branch December 31, 2024 20:32
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