When I send attachments, I do not see the body message (message.setText (this.getEmailBody ());) in the email. Without attachments, an email message appears with a body message. Emails are sent to your gmail account. Any clues why this is happening?
MimeMessage message = new MimeMessage(session_m); message.setFrom(new InternetAddress(this.getEmailSender())); message.addRecipient(Message.RecipientType.TO, new InternetAddress(this.getEmailRecipient())); message.setSubject(this.getEmailSubject()); message.setText(this.getEmailBody());
nidis source share