mirror of
https://github.com/codeninjasllc/codecombat.git
synced 2025-02-17 08:50:58 -05:00
Update licenses contact us form email routing
This commit is contained in:
parent
ae3b8057f7
commit
51a37d9edc
1 changed files with 1 additions and 0 deletions
|
@ -78,6 +78,7 @@ module.exports =
|
|||
return done("Error getting sales contact for #{fromAddress}: #{err}") if err
|
||||
matches = salesContactEmail.match(/^[a-zA-Z_]+ <(\w+@[a-zA-Z_]+?\.[a-zA-Z]{2,3})>$|(\w+@[a-zA-Z_]+?\.[a-zA-Z]{2,3})/i)
|
||||
salesContactEmail = matches?[1] ? matches?[2] ? config.mail.supportSchools
|
||||
salesContactEmail = config.mail.supportSchools if salesContactEmail?.indexOf('brian@codecombat.com') >= 0
|
||||
postData =
|
||||
to: [salesContactEmail]
|
||||
sender: config.mail.username
|
||||
|
|
Loading…
Reference in a new issue