title: how do you send email from R
body: <p>I want to send emails from R. This is what I have so far:</p>
  
  <pre><code>library(sendmailR)
  
  
  from &lt;- "eamil@example.com"
  to &lt;- "email2@example.com"
  subject &lt;- "Performance Result"
  body &lt;- "This is the result of the test:"                     
  mailControl=list(smtpServer="snmpt server address")
  
  sendmail(from=from,to=to,subject=subject,msg=body,control=mailControl)
  </code></pre>
  
  <p>When I execute this script, my R session hangs. Any ideas what might be happening?</p>