title: Fail to send email via Outlook.com using mailR package
body: <p>I want to use <code>{mailR}</code> package to send email notifications with authentication. This package is backended by <code>{rJava}</code> and uses Java facilities. </p>
  
  <p>I registered an Outlook.com account.</p>
  
  <p>Here's the code:</p>
  
  <pre><code>library(mailR)
  email &lt;- send.mail(
    from="(account-name)@outlook.com",
    to="(my-account)@outlook.com",
    subject="Test message from server",
    body="Hello, this is a test message.",
    smtp=list(host.name="smtp-mail.outlook.com",port=25,
      user.name="(account-name)@outlook.com",passwd="(account-password)", 
      ssl = TRUE),
    authenticate=TRUE,
    send=TRUE
  )
  </code></pre>
  
  <p>I read <a href="http://windows.microsoft.com/en-us/windows/outlook/send-receive-from-app" rel="nofollow">http://windows.microsoft.com/en-us/windows/outlook/send-receive-from-app</a> and tried all possible host names (smtp.live.com, smtp.outlook.com, smtp-mail.outlook.com) and ports (25, 587), but it all results in the following error:</p>
  
  <p><code>Error in .jcall("RJavaTools", "Ljava/lang/Object;", "invokeMethod", cl,  : 
    org.apache.commons.mail.EmailException: Sending the email to the following server failed : smtp-mail.outlook.com:465</code></p>
  
  <p>What is the problem? Is there a working solution to send email with authentication in R?</p>