Update sendmail.js

Line 117 had been throwing an undefined object error due to using "log" rather than "logger"