Go4Expert

Go4Expert (http://www.go4expert.com/)
-   Help and Support (http://www.go4expert.com/community/help-and-support/)
-   -   Cannot copy correctly the code block (http://www.go4expert.com/community/copy-correctly-code-block-t3660/)

Mary 28Mar2007 21:15

Cannot copy correctly the code block
 
When I try to copy the following code the copy does not work and the link breaks are not copied properly.

Code: Java

// create a message
Message msg = new MimeMessage(session);

// set the from
msg.setFrom(fromAddress);

InternetAddress[] address ={new InternetAddress(_to)};
msg.setRecipients(Message.RecipientType.TO, address);
msg.setSubject(_subject);

MimeBodyParttextPart = new MimeBodyPart();
textPart.setContent(_bodyText, "text/plain");

MimeBodyPartattachFilePart = new MimeBodyPart();
FileDataSourcefds = new FileDataSource(_fileName);
attachFilePart.setDataHandler(new DataHandler(fds));
attachFilePart.setFileName(fds.getName());

Multipart mp = new MimeMultipart();
mp.addBodyPart(textPart);
mp.addBodyPart(attachFilePart);

msg.setContent(mp);
Transport.send(msg);


shabbir 28Mar2007 22:57

Re: Cannot copy correctly the code block
 
The problem has been identified and there is some bug that will be fixed soon. Thanks for pointing that out.

shabbir 25May2007 17:16

Re: Cannot copy correctly the code block
 
I just forgot to mention it here and its already solved.


All times are GMT +5.5. The time now is 15:52.