feat: add the ability to set a MAILFROM value for local cron emails

Closes #7419
This commit is contained in:
Jose Diaz-Gonzalez committed 2024-12-17 00:28:21 -05:00
1 parent 819f9a84c9
commit b93a47c35b
7 files changed
+50 -5

No files matched your search

+5 -1
View File
@@ -9,7 +9,11 @@ import (
// TriggerCronGetProperty writes the cron key to stdout for a given app container
func TriggerCronGetProperty(appName string, key string) error {
if key != "mailto" {
validProperties := map[string]bool{
"mailfrom": true,
"mailto": true,
}
if !validProperties[key] {
return errors.New("Invalid cron property specified")
}