Get text from a Google Docs

I am quite new the using Google Apps Script, but not to JavaScript. I was wondering if there was a way that I could retrieve some text from a Google Docs, and send it in an email, something like this.
This is not the correct syntax, but bear with me.

function createAndSendDocument() {
    var email = "email";
    var subject = "Subject";
    var body = 
        GmailApp.sendEmail(email, subject, body);
}

Is there a way that I could do something like this,

var randnum = random(1,4)
getText(documentname, text from document)

Text on the document would look something like this.

  1. Hello

  2. Test

  3. How are you?

  4. Watermelon!
    Where getting the text from the document is based on randnum, example: randnum = 1 so email body would be "Hello"

Sorry for all the jumping around in the question, but hope you can answer this. Comment if you need any clarification.

56 thoughts on “Get text from a Google Docs”

  1. Pingback: cialis coupon
  2. Pingback: sildenafil 20 mg
  3. Pingback: herbal viagra
  4. Pingback: sildenafil viagra
  5. Pingback: cialis oral
  6. Pingback: online viagra
  7. Pingback: viagra samples
  8. Pingback: cialis 20
  9. Pingback: sildenafil generic
  10. Pingback: viagra uten resept
  11. Pingback: sildenafil online
  12. Pingback: otc viagra
  13. Pingback: viagra pour homme
  14. Pingback: lady viagra
  15. Pingback: viagra in india
  16. Pingback: viagras
  17. Pingback: homemade viagra
  18. Pingback: womens viagra
  19. Pingback: goodrx sildenafil
  20. Pingback: viagra pornhub
  21. 178077 559668Hello DropshipDragon provides dropping for quality, affordable products direct from China to your customers. Perfect for eBay sellers and internet site owners alike! 392621

    Reply

Leave a Comment