{{ if .Mailfrom -}} MAILFROM={{ .Mailfrom }} {{ end -}} {{ if .Mailto -}} MAILTO={{ .Mailto }} {{ end -}} PATH=/usr/local/bin:/usr/bin:/bin SHELL=/bin/bash {{ range $task := .Tasks -}} {{ $task.Schedule }} {{ $task.DokkuRunCommand }} {{ end -}} {{ range $group := .MailtoGroups }} MAILTO={{ $group.Mailto }} {{ range $task := $group.Tasks -}} {{ $task.Schedule }} {{ $task.DokkuRunCommand }} {{ end -}} {{ end -}}