Update mailer.js

only send mail of the type declared in config.mail.what array.

config.mail.what = ['BUY'];