title: How to add formating to mailR body of mail
body: <p>I am trying to send a mail about using <code>mailR</code>package, but as it is quite complicated issue, I would like to add a bit of formaring:</p>
  
  <ol>
  <li>"Do not cut this forest!" should be bold</li>
  <li>Numbered list should be nicely formatted</li>
  </ol>
  
  <p>.</p>
  
  <pre><code>library(mailR) # library used to send mails
  
  # The text I would like to send:
  Text &lt;- "Hi! 
  
  Do not cut this forest!
  
  The reason for this  ar as follows:
  1. Trees are good
  2. bla bla bla
  
  best regards,
  MS"
  
  #In reality I am reading it from TXT file
  text_real &lt;- readChar('text_real.txt', file.info('text_real.txt')$size)
  text_real &lt;- enc2utf8(text_real)
  
  sender &lt;- ...
  recipients &lt;- ...
  password &lt;- ...
  title &lt;- "title"
  
  
  #Sending mail
  send.mail(from = sender,
            to = recipients,
            subject = title,
            body = Text,
            encoding = "utf-8",
            smtp = list(host.name = "smtp.gmail.com", port = 465, 
                        user.name = sender,            
                        passwd = password, ssl = TRUE),
            authenticate = TRUE,
            send = TRUE)
  </code></pre>
  
  <p>Alternativly I know that <code>mailR</code> is using <code>html</code> so I have written it all in World and saved is as html. Unfortunatly it didn't work and coused seccond problem</p>
  
  <pre><code>Text &lt;- paste(readLines("real text.htm"), collapse="\n")
  </code></pre>
  
  <ol>
  <li><p>body of mail in fact send::</p>
  
  <p>&lt; html xmlns:v="urn:schemas-microsoft-com:vml"
  xmlns:o="urn:schemas-microsoft-com:office:office"
  xmlns:w="urn:schemas-microsoft-com:office:word"
  xmlns:m="http://schemas.microsoft.com/office/2004/12/omml"
  xmlns="http://www.w3.org/TR/REC-html40">
  ...</p></li>
  <li><p>I need to personalise every mail, in first solution (the <code>txt</code> one) I have used simple <code>gsub</code> function and I believe it will not be working here.</p></li>
  </ol>
  
  <p>I have also tried adding to <code>TXT</code> file, html formatting (<code>&lt;b&gt;</code> and <code>&lt;strong&gt;</code>) manually, but it didn't work.</p>
  
  <p>Thanks!</p>