title: How to Send Meeting Invitation From Gmail Ical4j API
body: <p>I am using <a href="http://ical4j.sourceforge.net/introduction.html" rel="nofollow">Ical4j</a> API to send meeting invitation from my gmail id  but how to set </p>
  
  <pre><code>VEvent meeting = new VEvent(startDt, dur, subject);
  </code></pre>
  
  <p><code>VEvent</code> object to the mail API class</p>
  
  <pre><code>    Message message = new MimeMessage(session);
      message.setFrom(new InternetAddress("myemail82@gmail.com"));
      message.setRecipients(Message.RecipientType.TO,    InternetAddress.parse("recepent@gmail.com"));
      message.setSubject("Testing Subject");
      message.setText("Dear Mail Crawler," + "\n\n No spam to my email, please!");
      Transport.send(message);
  </code></pre>
  
  <p>I was trying something like this </p>
  
  <pre><code>message.setContent(meeting, "MyMeeting");
  </code></pre>
  
  <p>But its throwing exception.Any Idea how can i do it?</p>