title: GmailApp.sendEmail() syntax for multiple options?
body: <p>I want to send emails with multiple hyperlinked text, line breaks and bolding. In addition to the <a href="https://developers.google.com/apps-script/reference/gmail/gmail-app#sendEmail(String,String,String,Object)" rel="nofollow noreferrer">.sendEmail()</a> documentation, I found this <a href="https://stackoverflow.com/questions/12870490/how-to-rename-the-link-from-the-geturl-function">question</a> and answer, but I'm still confused. Here's what I'm doing:</p>
  
  <pre><code>function emailTest() {
  var Link1 = "https://sites.google.com/a/****/item-shop" ; 
  var Link2 = "https://sites.google.com/a/****/leader-board" ;
  var name = "Adam";
  var message = "Congratulations " + name.bold() + "!" + '\n' + '\n' + "check out this cool " + Link1 +  '\n' + '\n' +
  
            "and this cool " + Link2 +  '\n' + '\n' +
            "Keep up the good work!" + '\n' + "Mr. S.";
  
  GmailApp.sendEmail ('fakename@gmail.com', "Congratulations!", message, 
                    {htmlBody: message.replace(Link1, '&lt;a href="https://sites.google.com/a/****/item-shop"&gt;Item Shop&lt;/a&gt;'),
                    htmlBody: message.replace(Link2, '&lt;a href="https://sites.google.com/a/****/leader-board"&gt;LeaderBoard&lt;/a&gt;')})
  }
  </code></pre>
  
  <p>Here's the result:
  <a href="https://i.stack.imgur.com/TFo66.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/TFo66.png" alt="enter image description here"></a></p>
  
  <p>bolding worked, and only 1 of the links, the line breaks did not happen.</p>
  
  <p>any guidance is appreciated!</p>