title: how to put inline image in automated mail from Google sheet
body: <p>I want to send mail with an inline image instead of as an attachment through google sheet. Please help </p>
  
  <p>the script is as below:</p>
  
  <pre><code>function emailSummary() {
      var ss = SpreadsheetApp.getActiveSpreadsheet()
      var sh = ss.getSheetByName("Hitesh")
      var file = DriveApp.getFileById('1T8QA_WsXQkZZGwmBSN13iPV7rM8xGG_GtYy6T1eug-c') 
      var gmail = 'hitesh.gtg@Gmail.com';
      var html =  '&lt;png&gt;'
  
      MailApp.sendEmail("hitesh.gtg@gmail.com", "sunject", "Dear Sir,\n\n Forwarding herewith Monthly Summaryw \n\n Regards \n Hitesh ", {
      //email address, subject, message
  
       name: 'Hitesh', //file name
       attachments: [file.getAs(MimeType.PDF)] //file to attach
      });
  }
  </code></pre>