Cannot copy correctly the code block

Discussion in 'Help and Support' started by pradeep, Mar 28, 2007.

  1. pradeep

    pradeep Team Leader

    Joined:
    Apr 4, 2005
    Messages:
    1,645
    Likes Received:
    87
    Trophy Points:
    0
    Occupation:
    Programmer
    Location:
    Kolkata, India
    Home Page:
    http://blog.pradeep.net.in
    When I try to copy the following code the copy does not work and the link breaks are not copied properly.

    Code:
    // 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);
     
  2. shabbir

    shabbir Administrator Staff Member

    Joined:
    Jul 12, 2004
    Messages:
    15,375
    Likes Received:
    388
    Trophy Points:
    83
    The problem has been identified and there is some bug that will be fixed soon. Thanks for pointing that out.
     
  3. shabbir

    shabbir Administrator Staff Member

    Joined:
    Jul 12, 2004
    Messages:
    15,375
    Likes Received:
    388
    Trophy Points:
    83
    I just forgot to mention it here and its already solved.
     

Share This Page

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice