feat: add the ability to set a MAILFROM value for local cron emails
Closes #7419
This commit is contained in:
7 files changed
+50
-5
No files matched your search
@@ -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")
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user