Doubt with nodejs: receive email

Asked

Viewed 80 times

3

I appreciate anyone who can help. I’m using this code:

client.openMailbox("INBOX", function(error, info){
        if(error) throw error;
        var ex;
        client.listMessages(-10, function(err, messages){
            messages.forEach(function(message){
                console.log(message.UID + ": " + message.title);
            });
        });
});

I wanted to get the content of the email and not just the title. I’m using the Inbox module to make the connection

No answers

Browser other questions tagged

You are not signed in. Login or sign up in order to post.