update hardcoded strings

Signed-off-by: Nicolas Froger <nicolas@kektus.xyz>
This commit is contained in:
Nicolas Froger 2022-08-15 23:38:23 +02:00
parent 980ec79dba
commit c9f97d5e70
Signed by: nicolas
GPG Key ID: 461D87623FDF1E47
2 changed files with 3 additions and 3 deletions

View File

@ -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)

View File

@ -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."