I was using Node mailer to send a mail in my application. Now I changed it into Mail-gun API. After the changes, I got the following error.
function promisifyCall (ctx, fn, ...args) {
^^^
SyntaxError: Unexpected token ...
How do I resolve it?
I'm using Node v6.8.1.
I resolved this issue by utilizing version, 0.7.11, of Mailgun-js.