Unable to send mail using gmail api node js












1














I have followed gmail api for sending email. I am getting error as:




"message": "400 - "{n \"error\": {n \"errors\": [n {n \"domain\": \"global\",n \"reason\": \"invalidArgument\",n \"message\": \"'raw' RFC822 payload message string or uploading message via /upload/* URL required\"n }n ],n \"code\": 400,n \"message\": \"'raw' RFC822 payload message string or uploading message via /upload/* URL required\"n }n}n""




Here is the piece of code I have written for sending mail using gmail api with node.js. Help me out to resolve the issue.



router.post('/composeMail', async (req, res, next) => {
function makeBody(to, from, subject, message) {
let str = ["Content-Type: text/plain; charset="UTF-8"n",
"Content-length: 5000n",
"Content-Transfer-Encoding: message/rfc822n",
"to: ", to,"n",
"from: ", from,"n",
"subject: ", subject,"nn",
message
].join('');
console.log("String: ", str);
// let encodedMail = new Buffer(str).toString("base64").replace(/+/g, '-').replace(///g, '_');
let encodedMail = btoa(str).replace(/+/g, '-').replace(///g, '_');
return encodedMail;
}
let raw = makeBody("dinesh.kumar@gmail.com", "dinesh.kumar@gmail.com", "Test mail", "Everything is fine");
let obj = {};
obj.raw = raw;
let body = JSON.stringify(obj);
let option = {
url: "https://www.googleapis.com/gmail/v1/users/userId/messages/send",
method: 'POST',
headers: {
'Authorization': `Bearer ${req.query.access_token}`
},
qs: {
userId: 'me'
},
body: body
};

await request(option).then(body => {
return res.apiOk(body);
}).catch(err => {
return res.apiError(err);
})
});









share|improve this question
























  • Did my answer show you the result what you want? Would you please tell me about it? That is also useful for me to study. If this works, other people who have the same issue with you can also base your question as a question which can be solved. If you have issues for my answer yet, feel free to tell me. I would like to study to solve your issues.
    – Tanaike
    Nov 13 at 22:02










  • Yes your answer worked for me @Tanaike
    – Dinesh Sathrasala
    Nov 14 at 5:40










  • Welcome. Thank you for letting me know. If your question was solved, please push an accept button. Other people who have the same issue with you can also base your question as a question which can be solved. If you don't find the button, feel free to tell me. stackoverflow.com/help/accepted-answer
    – Tanaike
    Nov 14 at 5:49
















1














I have followed gmail api for sending email. I am getting error as:




"message": "400 - "{n \"error\": {n \"errors\": [n {n \"domain\": \"global\",n \"reason\": \"invalidArgument\",n \"message\": \"'raw' RFC822 payload message string or uploading message via /upload/* URL required\"n }n ],n \"code\": 400,n \"message\": \"'raw' RFC822 payload message string or uploading message via /upload/* URL required\"n }n}n""




Here is the piece of code I have written for sending mail using gmail api with node.js. Help me out to resolve the issue.



router.post('/composeMail', async (req, res, next) => {
function makeBody(to, from, subject, message) {
let str = ["Content-Type: text/plain; charset="UTF-8"n",
"Content-length: 5000n",
"Content-Transfer-Encoding: message/rfc822n",
"to: ", to,"n",
"from: ", from,"n",
"subject: ", subject,"nn",
message
].join('');
console.log("String: ", str);
// let encodedMail = new Buffer(str).toString("base64").replace(/+/g, '-').replace(///g, '_');
let encodedMail = btoa(str).replace(/+/g, '-').replace(///g, '_');
return encodedMail;
}
let raw = makeBody("dinesh.kumar@gmail.com", "dinesh.kumar@gmail.com", "Test mail", "Everything is fine");
let obj = {};
obj.raw = raw;
let body = JSON.stringify(obj);
let option = {
url: "https://www.googleapis.com/gmail/v1/users/userId/messages/send",
method: 'POST',
headers: {
'Authorization': `Bearer ${req.query.access_token}`
},
qs: {
userId: 'me'
},
body: body
};

await request(option).then(body => {
return res.apiOk(body);
}).catch(err => {
return res.apiError(err);
})
});









share|improve this question
























  • Did my answer show you the result what you want? Would you please tell me about it? That is also useful for me to study. If this works, other people who have the same issue with you can also base your question as a question which can be solved. If you have issues for my answer yet, feel free to tell me. I would like to study to solve your issues.
    – Tanaike
    Nov 13 at 22:02










  • Yes your answer worked for me @Tanaike
    – Dinesh Sathrasala
    Nov 14 at 5:40










  • Welcome. Thank you for letting me know. If your question was solved, please push an accept button. Other people who have the same issue with you can also base your question as a question which can be solved. If you don't find the button, feel free to tell me. stackoverflow.com/help/accepted-answer
    – Tanaike
    Nov 14 at 5:49














1












1








1







I have followed gmail api for sending email. I am getting error as:




"message": "400 - "{n \"error\": {n \"errors\": [n {n \"domain\": \"global\",n \"reason\": \"invalidArgument\",n \"message\": \"'raw' RFC822 payload message string or uploading message via /upload/* URL required\"n }n ],n \"code\": 400,n \"message\": \"'raw' RFC822 payload message string or uploading message via /upload/* URL required\"n }n}n""




Here is the piece of code I have written for sending mail using gmail api with node.js. Help me out to resolve the issue.



router.post('/composeMail', async (req, res, next) => {
function makeBody(to, from, subject, message) {
let str = ["Content-Type: text/plain; charset="UTF-8"n",
"Content-length: 5000n",
"Content-Transfer-Encoding: message/rfc822n",
"to: ", to,"n",
"from: ", from,"n",
"subject: ", subject,"nn",
message
].join('');
console.log("String: ", str);
// let encodedMail = new Buffer(str).toString("base64").replace(/+/g, '-').replace(///g, '_');
let encodedMail = btoa(str).replace(/+/g, '-').replace(///g, '_');
return encodedMail;
}
let raw = makeBody("dinesh.kumar@gmail.com", "dinesh.kumar@gmail.com", "Test mail", "Everything is fine");
let obj = {};
obj.raw = raw;
let body = JSON.stringify(obj);
let option = {
url: "https://www.googleapis.com/gmail/v1/users/userId/messages/send",
method: 'POST',
headers: {
'Authorization': `Bearer ${req.query.access_token}`
},
qs: {
userId: 'me'
},
body: body
};

await request(option).then(body => {
return res.apiOk(body);
}).catch(err => {
return res.apiError(err);
})
});









share|improve this question















I have followed gmail api for sending email. I am getting error as:




"message": "400 - "{n \"error\": {n \"errors\": [n {n \"domain\": \"global\",n \"reason\": \"invalidArgument\",n \"message\": \"'raw' RFC822 payload message string or uploading message via /upload/* URL required\"n }n ],n \"code\": 400,n \"message\": \"'raw' RFC822 payload message string or uploading message via /upload/* URL required\"n }n}n""




Here is the piece of code I have written for sending mail using gmail api with node.js. Help me out to resolve the issue.



router.post('/composeMail', async (req, res, next) => {
function makeBody(to, from, subject, message) {
let str = ["Content-Type: text/plain; charset="UTF-8"n",
"Content-length: 5000n",
"Content-Transfer-Encoding: message/rfc822n",
"to: ", to,"n",
"from: ", from,"n",
"subject: ", subject,"nn",
message
].join('');
console.log("String: ", str);
// let encodedMail = new Buffer(str).toString("base64").replace(/+/g, '-').replace(///g, '_');
let encodedMail = btoa(str).replace(/+/g, '-').replace(///g, '_');
return encodedMail;
}
let raw = makeBody("dinesh.kumar@gmail.com", "dinesh.kumar@gmail.com", "Test mail", "Everything is fine");
let obj = {};
obj.raw = raw;
let body = JSON.stringify(obj);
let option = {
url: "https://www.googleapis.com/gmail/v1/users/userId/messages/send",
method: 'POST',
headers: {
'Authorization': `Bearer ${req.query.access_token}`
},
qs: {
userId: 'me'
},
body: body
};

await request(option).then(body => {
return res.apiOk(body);
}).catch(err => {
return res.apiError(err);
})
});






node.js gmail-api google-api-nodejs-client google-apis-explorer






share|improve this question















share|improve this question













share|improve this question




share|improve this question








edited Nov 12 at 13:49

























asked Nov 12 at 13:29









Dinesh Sathrasala

246




246












  • Did my answer show you the result what you want? Would you please tell me about it? That is also useful for me to study. If this works, other people who have the same issue with you can also base your question as a question which can be solved. If you have issues for my answer yet, feel free to tell me. I would like to study to solve your issues.
    – Tanaike
    Nov 13 at 22:02










  • Yes your answer worked for me @Tanaike
    – Dinesh Sathrasala
    Nov 14 at 5:40










  • Welcome. Thank you for letting me know. If your question was solved, please push an accept button. Other people who have the same issue with you can also base your question as a question which can be solved. If you don't find the button, feel free to tell me. stackoverflow.com/help/accepted-answer
    – Tanaike
    Nov 14 at 5:49


















  • Did my answer show you the result what you want? Would you please tell me about it? That is also useful for me to study. If this works, other people who have the same issue with you can also base your question as a question which can be solved. If you have issues for my answer yet, feel free to tell me. I would like to study to solve your issues.
    – Tanaike
    Nov 13 at 22:02










  • Yes your answer worked for me @Tanaike
    – Dinesh Sathrasala
    Nov 14 at 5:40










  • Welcome. Thank you for letting me know. If your question was solved, please push an accept button. Other people who have the same issue with you can also base your question as a question which can be solved. If you don't find the button, feel free to tell me. stackoverflow.com/help/accepted-answer
    – Tanaike
    Nov 14 at 5:49
















Did my answer show you the result what you want? Would you please tell me about it? That is also useful for me to study. If this works, other people who have the same issue with you can also base your question as a question which can be solved. If you have issues for my answer yet, feel free to tell me. I would like to study to solve your issues.
– Tanaike
Nov 13 at 22:02




Did my answer show you the result what you want? Would you please tell me about it? That is also useful for me to study. If this works, other people who have the same issue with you can also base your question as a question which can be solved. If you have issues for my answer yet, feel free to tell me. I would like to study to solve your issues.
– Tanaike
Nov 13 at 22:02












Yes your answer worked for me @Tanaike
– Dinesh Sathrasala
Nov 14 at 5:40




Yes your answer worked for me @Tanaike
– Dinesh Sathrasala
Nov 14 at 5:40












Welcome. Thank you for letting me know. If your question was solved, please push an accept button. Other people who have the same issue with you can also base your question as a question which can be solved. If you don't find the button, feel free to tell me. stackoverflow.com/help/accepted-answer
– Tanaike
Nov 14 at 5:49




Welcome. Thank you for letting me know. If your question was solved, please push an accept button. Other people who have the same issue with you can also base your question as a question which can be solved. If you don't find the button, feel free to tell me. stackoverflow.com/help/accepted-answer
– Tanaike
Nov 14 at 5:49












1 Answer
1






active

oldest

votes


















1















  • You want to send an email using Gmail API by the request module.


If my understanding is correct, how about this modification? I think that there are several answers. So please think of this as one of them.



Modification points:




  • Please use https://www.googleapis.com/upload/gmail/v1/users/userId/messages/send as the endpoint.

  • Use the value as a string.

  • Add 'Content-Type': 'message/rfc822' to the headers.


Modified script:



Please modify makeBody() as follows.



function makeBody(to, from, subject, message) {
let str = [
"to: ", to, "n",
"from: ", from, "n",
"subject: ", subject, "nn",
message,
].join('');
return str;
}


Please modify option as follows.



let raw = makeBody("dinesh.kumar@gmail.com", "dinesh.kumar@gmail.com", "Test mail", "Everything is fine");
const userId = 'me'; // Please modify this for your situation.
let option = {
url: "https://www.googleapis.com/upload/gmail/v1/users/" + userId + "/messages/send",
method: 'POST',
headers: {
'Authorization': `Bearer ${req.query.access_token}`,
'Content-Type': 'message/rfc822',
},
body: raw,
};


Note:




  • This modified script supposes that Gmail API is enabled at API console and the required scope for sending emails is included in the scopes of access token.


Reference:




  • Users.messages: send


In my environment, I could confirm that this modified script worked fine. But if this was not what you want, I'm sorry.






share|improve this answer





















  • @Dinesh Sathrasala I'm sorry. I cannot understand about your comment. Can you post it as new question including more information? When you post it, it will help users including me think of your issue.
    – Tanaike
    Dec 13 at 23:23










  • Tanaike please check the link of my post stackoverflow.com/questions/53761566/…
    – Dinesh Sathrasala
    Dec 14 at 3:49












  • @Dinesh Sathrasala Thank you for replying. I would like to check it.
    – Tanaike
    Dec 14 at 7:09










  • I have found solution for it. Thanks for replying.
    – Dinesh Sathrasala
    Dec 14 at 7:56










  • @Dinesh Sathrasala Thank you for letting me know. I'm glad your issue was resolved. Thank you, too.
    – Tanaike
    Dec 14 at 7:59











Your Answer






StackExchange.ifUsing("editor", function () {
StackExchange.using("externalEditor", function () {
StackExchange.using("snippets", function () {
StackExchange.snippets.init();
});
});
}, "code-snippets");

StackExchange.ready(function() {
var channelOptions = {
tags: "".split(" "),
id: "1"
};
initTagRenderer("".split(" "), "".split(" "), channelOptions);

StackExchange.using("externalEditor", function() {
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled) {
StackExchange.using("snippets", function() {
createEditor();
});
}
else {
createEditor();
}
});

function createEditor() {
StackExchange.prepareEditor({
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: true,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: 10,
bindNavPrevention: true,
postfix: "",
imageUploader: {
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
},
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
});


}
});














draft saved

draft discarded


















StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f53263239%2funable-to-send-mail-using-gmail-api-node-js%23new-answer', 'question_page');
}
);

Post as a guest















Required, but never shown

























1 Answer
1






active

oldest

votes








1 Answer
1






active

oldest

votes









active

oldest

votes






active

oldest

votes









1















  • You want to send an email using Gmail API by the request module.


If my understanding is correct, how about this modification? I think that there are several answers. So please think of this as one of them.



Modification points:




  • Please use https://www.googleapis.com/upload/gmail/v1/users/userId/messages/send as the endpoint.

  • Use the value as a string.

  • Add 'Content-Type': 'message/rfc822' to the headers.


Modified script:



Please modify makeBody() as follows.



function makeBody(to, from, subject, message) {
let str = [
"to: ", to, "n",
"from: ", from, "n",
"subject: ", subject, "nn",
message,
].join('');
return str;
}


Please modify option as follows.



let raw = makeBody("dinesh.kumar@gmail.com", "dinesh.kumar@gmail.com", "Test mail", "Everything is fine");
const userId = 'me'; // Please modify this for your situation.
let option = {
url: "https://www.googleapis.com/upload/gmail/v1/users/" + userId + "/messages/send",
method: 'POST',
headers: {
'Authorization': `Bearer ${req.query.access_token}`,
'Content-Type': 'message/rfc822',
},
body: raw,
};


Note:




  • This modified script supposes that Gmail API is enabled at API console and the required scope for sending emails is included in the scopes of access token.


Reference:




  • Users.messages: send


In my environment, I could confirm that this modified script worked fine. But if this was not what you want, I'm sorry.






share|improve this answer





















  • @Dinesh Sathrasala I'm sorry. I cannot understand about your comment. Can you post it as new question including more information? When you post it, it will help users including me think of your issue.
    – Tanaike
    Dec 13 at 23:23










  • Tanaike please check the link of my post stackoverflow.com/questions/53761566/…
    – Dinesh Sathrasala
    Dec 14 at 3:49












  • @Dinesh Sathrasala Thank you for replying. I would like to check it.
    – Tanaike
    Dec 14 at 7:09










  • I have found solution for it. Thanks for replying.
    – Dinesh Sathrasala
    Dec 14 at 7:56










  • @Dinesh Sathrasala Thank you for letting me know. I'm glad your issue was resolved. Thank you, too.
    – Tanaike
    Dec 14 at 7:59
















1















  • You want to send an email using Gmail API by the request module.


If my understanding is correct, how about this modification? I think that there are several answers. So please think of this as one of them.



Modification points:




  • Please use https://www.googleapis.com/upload/gmail/v1/users/userId/messages/send as the endpoint.

  • Use the value as a string.

  • Add 'Content-Type': 'message/rfc822' to the headers.


Modified script:



Please modify makeBody() as follows.



function makeBody(to, from, subject, message) {
let str = [
"to: ", to, "n",
"from: ", from, "n",
"subject: ", subject, "nn",
message,
].join('');
return str;
}


Please modify option as follows.



let raw = makeBody("dinesh.kumar@gmail.com", "dinesh.kumar@gmail.com", "Test mail", "Everything is fine");
const userId = 'me'; // Please modify this for your situation.
let option = {
url: "https://www.googleapis.com/upload/gmail/v1/users/" + userId + "/messages/send",
method: 'POST',
headers: {
'Authorization': `Bearer ${req.query.access_token}`,
'Content-Type': 'message/rfc822',
},
body: raw,
};


Note:




  • This modified script supposes that Gmail API is enabled at API console and the required scope for sending emails is included in the scopes of access token.


Reference:




  • Users.messages: send


In my environment, I could confirm that this modified script worked fine. But if this was not what you want, I'm sorry.






share|improve this answer





















  • @Dinesh Sathrasala I'm sorry. I cannot understand about your comment. Can you post it as new question including more information? When you post it, it will help users including me think of your issue.
    – Tanaike
    Dec 13 at 23:23










  • Tanaike please check the link of my post stackoverflow.com/questions/53761566/…
    – Dinesh Sathrasala
    Dec 14 at 3:49












  • @Dinesh Sathrasala Thank you for replying. I would like to check it.
    – Tanaike
    Dec 14 at 7:09










  • I have found solution for it. Thanks for replying.
    – Dinesh Sathrasala
    Dec 14 at 7:56










  • @Dinesh Sathrasala Thank you for letting me know. I'm glad your issue was resolved. Thank you, too.
    – Tanaike
    Dec 14 at 7:59














1












1








1







  • You want to send an email using Gmail API by the request module.


If my understanding is correct, how about this modification? I think that there are several answers. So please think of this as one of them.



Modification points:




  • Please use https://www.googleapis.com/upload/gmail/v1/users/userId/messages/send as the endpoint.

  • Use the value as a string.

  • Add 'Content-Type': 'message/rfc822' to the headers.


Modified script:



Please modify makeBody() as follows.



function makeBody(to, from, subject, message) {
let str = [
"to: ", to, "n",
"from: ", from, "n",
"subject: ", subject, "nn",
message,
].join('');
return str;
}


Please modify option as follows.



let raw = makeBody("dinesh.kumar@gmail.com", "dinesh.kumar@gmail.com", "Test mail", "Everything is fine");
const userId = 'me'; // Please modify this for your situation.
let option = {
url: "https://www.googleapis.com/upload/gmail/v1/users/" + userId + "/messages/send",
method: 'POST',
headers: {
'Authorization': `Bearer ${req.query.access_token}`,
'Content-Type': 'message/rfc822',
},
body: raw,
};


Note:




  • This modified script supposes that Gmail API is enabled at API console and the required scope for sending emails is included in the scopes of access token.


Reference:




  • Users.messages: send


In my environment, I could confirm that this modified script worked fine. But if this was not what you want, I'm sorry.






share|improve this answer













  • You want to send an email using Gmail API by the request module.


If my understanding is correct, how about this modification? I think that there are several answers. So please think of this as one of them.



Modification points:




  • Please use https://www.googleapis.com/upload/gmail/v1/users/userId/messages/send as the endpoint.

  • Use the value as a string.

  • Add 'Content-Type': 'message/rfc822' to the headers.


Modified script:



Please modify makeBody() as follows.



function makeBody(to, from, subject, message) {
let str = [
"to: ", to, "n",
"from: ", from, "n",
"subject: ", subject, "nn",
message,
].join('');
return str;
}


Please modify option as follows.



let raw = makeBody("dinesh.kumar@gmail.com", "dinesh.kumar@gmail.com", "Test mail", "Everything is fine");
const userId = 'me'; // Please modify this for your situation.
let option = {
url: "https://www.googleapis.com/upload/gmail/v1/users/" + userId + "/messages/send",
method: 'POST',
headers: {
'Authorization': `Bearer ${req.query.access_token}`,
'Content-Type': 'message/rfc822',
},
body: raw,
};


Note:




  • This modified script supposes that Gmail API is enabled at API console and the required scope for sending emails is included in the scopes of access token.


Reference:




  • Users.messages: send


In my environment, I could confirm that this modified script worked fine. But if this was not what you want, I'm sorry.







share|improve this answer












share|improve this answer



share|improve this answer










answered Nov 13 at 0:58









Tanaike

19.6k21022




19.6k21022












  • @Dinesh Sathrasala I'm sorry. I cannot understand about your comment. Can you post it as new question including more information? When you post it, it will help users including me think of your issue.
    – Tanaike
    Dec 13 at 23:23










  • Tanaike please check the link of my post stackoverflow.com/questions/53761566/…
    – Dinesh Sathrasala
    Dec 14 at 3:49












  • @Dinesh Sathrasala Thank you for replying. I would like to check it.
    – Tanaike
    Dec 14 at 7:09










  • I have found solution for it. Thanks for replying.
    – Dinesh Sathrasala
    Dec 14 at 7:56










  • @Dinesh Sathrasala Thank you for letting me know. I'm glad your issue was resolved. Thank you, too.
    – Tanaike
    Dec 14 at 7:59


















  • @Dinesh Sathrasala I'm sorry. I cannot understand about your comment. Can you post it as new question including more information? When you post it, it will help users including me think of your issue.
    – Tanaike
    Dec 13 at 23:23










  • Tanaike please check the link of my post stackoverflow.com/questions/53761566/…
    – Dinesh Sathrasala
    Dec 14 at 3:49












  • @Dinesh Sathrasala Thank you for replying. I would like to check it.
    – Tanaike
    Dec 14 at 7:09










  • I have found solution for it. Thanks for replying.
    – Dinesh Sathrasala
    Dec 14 at 7:56










  • @Dinesh Sathrasala Thank you for letting me know. I'm glad your issue was resolved. Thank you, too.
    – Tanaike
    Dec 14 at 7:59
















@Dinesh Sathrasala I'm sorry. I cannot understand about your comment. Can you post it as new question including more information? When you post it, it will help users including me think of your issue.
– Tanaike
Dec 13 at 23:23




@Dinesh Sathrasala I'm sorry. I cannot understand about your comment. Can you post it as new question including more information? When you post it, it will help users including me think of your issue.
– Tanaike
Dec 13 at 23:23












Tanaike please check the link of my post stackoverflow.com/questions/53761566/…
– Dinesh Sathrasala
Dec 14 at 3:49






Tanaike please check the link of my post stackoverflow.com/questions/53761566/…
– Dinesh Sathrasala
Dec 14 at 3:49














@Dinesh Sathrasala Thank you for replying. I would like to check it.
– Tanaike
Dec 14 at 7:09




@Dinesh Sathrasala Thank you for replying. I would like to check it.
– Tanaike
Dec 14 at 7:09












I have found solution for it. Thanks for replying.
– Dinesh Sathrasala
Dec 14 at 7:56




I have found solution for it. Thanks for replying.
– Dinesh Sathrasala
Dec 14 at 7:56












@Dinesh Sathrasala Thank you for letting me know. I'm glad your issue was resolved. Thank you, too.
– Tanaike
Dec 14 at 7:59




@Dinesh Sathrasala Thank you for letting me know. I'm glad your issue was resolved. Thank you, too.
– Tanaike
Dec 14 at 7:59


















draft saved

draft discarded




















































Thanks for contributing an answer to Stack Overflow!


  • Please be sure to answer the question. Provide details and share your research!

But avoid



  • Asking for help, clarification, or responding to other answers.

  • Making statements based on opinion; back them up with references or personal experience.


To learn more, see our tips on writing great answers.





Some of your past answers have not been well-received, and you're in danger of being blocked from answering.


Please pay close attention to the following guidance:


  • Please be sure to answer the question. Provide details and share your research!

But avoid



  • Asking for help, clarification, or responding to other answers.

  • Making statements based on opinion; back them up with references or personal experience.


To learn more, see our tips on writing great answers.




draft saved


draft discarded














StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f53263239%2funable-to-send-mail-using-gmail-api-node-js%23new-answer', 'question_page');
}
);

Post as a guest















Required, but never shown





















































Required, but never shown














Required, but never shown












Required, but never shown







Required, but never shown

































Required, but never shown














Required, but never shown












Required, but never shown







Required, but never shown







Popular posts from this blog

Xamarin.iOS Cant Deploy on Iphone

Glorious Revolution

Dulmage-Mendelsohn matrix decomposition in Python