update hardcoded strings
Signed-off-by: Nicolas Froger <nicolas@kektus.xyz>
This commit is contained in:
parent
980ec79dba
commit
c9f97d5e70
4
main.go
4
main.go
|
@ -72,8 +72,8 @@ func main() {
|
|||
viper.SetDefault("SMTP_SERVER_ADDR", "127.0.0.1:465")
|
||||
viper.SetDefault("SMTP_CLIENT_USERNAME", "")
|
||||
viper.SetDefault("SMTP_CLIENT_PASSWORD", "")
|
||||
viper.SetDefault("CONTACT_REPLY_EMAIL", "noreply@company.com")
|
||||
viper.SetDefault("CONTACT_REPLY_BCC_EMAIL", "contact@company.com")
|
||||
viper.SetDefault("CONTACT_REPLY_EMAIL", "noreply@example.com")
|
||||
viper.SetDefault("CONTACT_REPLY_BCC_EMAIL", "contact@example.com")
|
||||
viper.SetDefault("EMAIL_SUBJECT", "New message from contact form")
|
||||
viper.SetDefault("SMTP_AUTHENTICATION_ENABLED", true)
|
||||
|
||||
|
|
|
@ -267,7 +267,7 @@ func SendMail(httpResp http.ResponseWriter, httpReq *http.Request) {
|
|||
if err != nil {
|
||||
log.Println(err.Error())
|
||||
contactResponse.Status = "error"
|
||||
contactResponse.Message = fmt.Sprintf("An internal error occurred, please try later or send us an email at %s.", viper.GetString("CONTACT_REPLY_BCC_EMAIL"))
|
||||
contactResponse.Message = fmt.Sprintf("An internal error occurred, please try later.")
|
||||
} else {
|
||||
contactResponse.Status = "success"
|
||||
contactResponse.Message = "Thank you for your message."
|
||||
|
|
Loading…
Reference in New Issue