This week's book giveaway is in the OCAJP forum. We're giving away four copies of OCA Java SE 8 Programmer I Study Guide 1Z0-808 and have Jeanne Boyarsky & Scott Selikoff on-line! See this thread for details.
Hi all, When I try and attach a file to an email it somehow removes the email body text.If I dont attach the file the body text appears. It must have something to do with how I am using the mMultipart object.
Below is my code. Could someone please show me what I am doing wrong?
// Define messgae Message message = new MimeMessage(this.session); Address fromAddress = new InternetAddress(fromEmail, fromName); message.setFrom(fromAddress); message.setSubject(subject);