Home > OS >  I want to send POST details from getPlainBody data
I want to send POST details from getPlainBody data

Time:11-11

Peace I get data in the command:

function myFunction() {
  let from = GmailApp.search('xxx');
  var body = lastMessage.getPlainBody()
  Logger.log(body)
}

How can I send a POST to a particular address?

Because of my lesser English will help detail and examples

I'm sorry for the way I speak, I'm just translating

Thank you

CodePudding user response:

You can send a POST request using UrlFetchApp.fetch(). See more information below.

https://developers.google.com/apps-script/reference/url-fetch/url-fetch-app

  • Related