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);