SMTP using nodemailer in nodejs without GMail

I am using node mailer with GMail

 smtpTransport = nodemailer.createTransport("SMTP", {
            service: "Gmail",
            auth: {
                user: "myemail ",
                pass: "mypass"
            }
        });

which is working fine.

Now i want to use my own email server instead of GMail .

I am doing this

smtpTransport = nodemailer.createTransport("SMTP", {
                service: "mymailservr link url",
                 port : 25  
                auth: {
                    user: "myemail ",
                    pass: "mypass"
                }
        });

It through this error

connect ECONNREFUSED

Any idea

Thanks

The service option is only for well-known services. To specify your own host, set host.

var smtpTransport = nodemailer.createTransport('SMTP', {
    host: 'yourserver.com',
    port: 25,
    auth: {
        user: 'username',
        pass: 'password'
    }
});