title: Error sending MIME mail runtime error in xpages
body: <p><br />
  I want to send emails from xPages. I have created a test button and added a simple action "Send Mail" to it, but when I click on it to send the test email I get this runtime error:</p>
  
  <blockquote>
    <p>Exception<br />
    Error sending MIME mail</p>
  </blockquote>
  
  <p>I tried to send emails using this SSJS too:</p>
  
  <pre class="lang-js prettyprint-override"><code>var doc:NotesDocument = database.createDocument();
  doc.replaceItemValue("form", "Memo");
  doc.replaceItemValue("sendTo", "daniel.recio@slug.es");
  doc.replaceItemValue("subject", "hi there!");
  doc.replaceItemValue("body", "content here");
  doc.send();
  </code></pre>
  
  <p>but I got this runtime error:</p>
  
  <blockquote>
    <p>Error while executing JavaScript action expression Script interpreter
    error, line=6, col=5: [TypeError] Exception occurred calling method
    NotesDocument.send() null</p>
  </blockquote>
  
  <p>I'll appreciate your help.<br />
  Thanks</p>