update email send methods to read config