0

I'm trying to integrate nodemailer and IBM Watson together. The issue is that the function works on the cloud functions, but when I integrate it with IBM Conversation, it gives me this error:

Error Code:

{"code":500,"msg":"Error","reason":{"code":"EENVELOPE","command":"API"}}

This is the config:

let smtpConfig = {
    host: 'smtp.gmail.com',
    port: '587',
    auth: {
        user: '****', 
        pass: '****'
    },
    secureConnection: 'false',
    tls: {
        ciphers: 'SSLv3',
        rejectUnauthorized: false

    }
};
  • I have turned off 'Less secure app access', which still doesn't work.

Any idea what the error code means?

John C
  • 517
  • 2
  • 6
  • 16
  • How have you integrated it with Watson Assistant / Conversation? What is your dialog node that includes the action? – data_henrik May 26 '19 at 13:32

1 Answers1

0

I found the answer. You have to put \\ before the '@' in the parameters for Watson.

Wrong: "email": "email@gmail.com"

Correct: "email": "email\\@gmail.com"

John C
  • 517
  • 2
  • 6
  • 16