Since we found the was that nodemailer minimum nodejs version being not met, updating the node version on openshift would resolve the issue, to update the version use rhc to connect to the vm and do the following changes,
Node.js
By default, the Node.js version is determined by querying semver.io/node/unstable.
A different URL can be specified either via NODE_VERSION_URL environment variable or by setting .openshift/NODE_VERSION_URL marker in your application repository. For instance, you'd get the latest 6.x.x (6.10.2 as of today) by putting this in NODE_VERSION_URL variable or .openshift/NODE_VERSION_URL marker:
https://semver.io/node/resolve/6
If you're using a non-default Node.js version and you're planning to scale the application across multiple gears, you must use the environment variable.
npm
By default, the npm version is determined by running npm view npm version.
A different npm version can be specified either via NPM_VERSION_URL environment variable or by setting .openshift/NPM_VERSION_URL marker in your application repository. For instance, you'd get the latest 3.x (3.10.10 as of today) by putting this in NPM_VERSION_URL variable or .openshift/NPM_VERSION_URL marker:
https://semver.io/npm/resolve/3