Node JS layer to send email through xPL API