processedBody = this.body;
}
MailMessage mailMessage = new MailMessage(
from, to, processedSubject, processedBody, htmlFormat);
if (attachments != null) {
<BUG>for (File attachment : attachments) {

mailMessage.addAttachment(attachment);
}</BUG>
}

processedBody = this.body;
}
MailMessage mailMessage = new MailMessage(
from, to, processedSubject, processedBody, htmlFormat);
if (attachments != null) {
for (LiferayAttachment liferayAttachment : attachments) {
mailMessage.addAttachment(
liferayAttachment.getAttachment(), liferayAttachment.getAttachmentFileName());
}
}
