title: How to send email attachments with microsoft exchange?
body: <p>I want to send email attachements through Exchange server using java. Sending email is working fine:</p>
  
  <pre><code>ExchangeService service = new ExchangeService();
  ExchangeCredentials credentials = new WebCredentials(username,password);
  service.setCredentials(credentials);
  service.setUrl(new URI(MailHost));
  
  EmailMessage msg = new EmailMessage(service);
  msg.setSubject("My Subject!");
  msg.setBody(MessageBody.getMessageBodyFromText("My Message"));
  msg.getToRecipients().add(mailTo);
  </code></pre>
  
  <p>Can anyone please help me?</p>