Fixed Heroku "Missing SMTP Config"

This commit is contained in:
YourWishes committed 2018-07-09 22:07:42 +10:00
1 parent 2d4d2037d7
commit 744dbefe85
1 file changed
-1
-1
View File
@@ -38,7 +38,6 @@ class Email {
getSourceEmail() {return this.getConfig().getValueOf("smtp.source.email");}
connect() {
if(!this.getConfig().getValueOf("smtp")) throw new Error("Missing SMTP Config");
if(!this.getConfig().getValueOf("smtp.host")) throw new Error("Missing SMTP Host Config");
if(!this.getConfig().getValueOf("smtp.username")) throw new Error("Missing SMTP Username Config");
if(!this.getConfig().getValueOf("smtp.password")) throw new Error("Missing SMTP Password Config");