File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Other JSE/JEE APIs and the fly likes Meeting request using Java Mail Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Other JSE/JEE APIs
Bookmark "Meeting request using Java Mail" Watch "Meeting request using Java Mail" New topic

Meeting request using Java Mail

Maya Karthik

Joined: Jul 18, 2008
Posts: 10
I am trying to send the meeting invitation mails using java.
I could do it with the help of some code which i got from sun's forum.
But it allows me to have a description of only one line in the calendar.It takes only one line.
How can i have a description which have more than one line added to it?
Please help :
Thank You,
Paul Clapham

Joined: Oct 14, 2005
Posts: 19973

Take the code which you have (not shown) and where you put in text without line breaks, change it to put in text with line breaks? Did you try that? Did you have a problem with it? What was it?

(And since this is Microsoft we're talking about, it's quite likely that your line breaks have to be \r\n and not just \n.)
Maya Karthik

Joined: Jul 18, 2008
Posts: 10
Thank you for the reply
This was the code which i tried
StringBuffer sb = new StringBuffer();
+ "PRODID:-//Microsoft Corporation//Outlook 9.0 MIMEDIR//EN\n"
+ "VERSION:2.0\n"
+ "DTSTART:20090515T053000Z\n"
+ "DTEND:20090515T060000Z\n"
+ "LOCATION:Conference room\n"
+ "SEQUENCE:0\n"
+ "UID:040000008200E00074C5B7101A82E00800000000002FF466CE3AC5010000000000000000100\n"
+ " 000004377FE5C37984842BF9440448399EB02\n"
+ "DTSTAMP:20051206T120102Z\n"
+ "CATEGORIES:Meeting\n"
+ "DESCRIPTION:This the description of the meeting.\nPlease attend\n\n"
+ "SUMMARY:Test meeting request\n" + "PRIORITY:5\n"
+ "DESCRIPTION:Reminder\n" + "END:VALARM\n"
return sb;

Here in the calendar request only "This the description of the meeting." is coming.
Valer Micle

Joined: Jan 22, 2010
Posts: 1

I've been searching for a solution on a lot of forums for a similar problem. Finally I didn;t found a complete solution and I've worked quite a lot on finding the right solution.

I've posted the complete solution of this problem on my blog

Enjoy it ;)
I agree. Here's the link:
subject: Meeting request using Java Mail
It's not a secret anymore!