Consultation nodemailer nodejs

0

I'm trying to send a message on a network with an active proxy ip proxy: 192.168.2.1: 3128

I configure my options on nodemailer

var smtpConfig = {
    host: 'smtp.gmail.com',
    port: 465,
      auth: {
        user: mailconfig.email,
        pass: mailconfig.password
    },
    //proxy config 
    // assumes a HTTP proxy running on port 3128 
    proxy: 'http://192.168.2.1:3128'
};

var smtptransport=nodemailer.createTransport(smtpConfig);

But I get the following error:

  

Invalid response from proxy 403

I already checked everything, and I do not know what the error might be.

    
asked by Kevin AB 27.09.2016 в 00:25
source

1 answer

1

The status code 403 indicates that the Proxy request requires authentication. The example code does not show that you pass credentials in the proxy details. This must be the problem

    
answered by 28.09.2016 в 20:03