http proxy nodemailer node.js

I am working with node.js and nodemailer on a network that has a http proxy.The emails get sent(via nodemailer) when am on another network(one without a http proxy).

Is there a way of making nodejs use the http proxy whenever it makes sends requests online?Or are there settings in nodemailer that can allow me to set up the host and port for the http proxy?