mirror of
https://github.com/jhillyerd/inbucket.git
synced 2025-12-17 17:47:03 +00:00
smtp: Use config.SMTP directly in Server #91
This commit is contained in:
@@ -3,6 +3,7 @@ package config
|
||||
import (
|
||||
"log"
|
||||
"os"
|
||||
"strings"
|
||||
"text/tabwriter"
|
||||
"time"
|
||||
|
||||
@@ -81,6 +82,7 @@ type Storage struct {
|
||||
func Process() (*Root, error) {
|
||||
c := &Root{}
|
||||
err := envconfig.Process(prefix, c)
|
||||
c.SMTP.DomainNoStore = strings.ToLower(c.SMTP.DomainNoStore)
|
||||
return c, err
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user