_log.debug("HTML Format: " + htmlFormat);
_log.debug("Reply to: " + Arrays.toString(replyTo));
_log.debug("Message ID: " + messageId);
_log.debug("In Reply To: " + inReplyTo);
if (attachments != null) {
<BUG>for (int i = 0; i < attachments.length; i++) {

File attachment = attachments[i];
if (attachment != null) {
String path = attachment.getAbsolutePath();

_log.debug("Attachment #" + (i + 1) + ": " + path);

}</BUG>
}

_log.debug("HTML Format: " + htmlFormat);
_log.debug("Reply to: " + Arrays.toString(replyTo));
_log.debug("Message ID: " + messageId);
_log.debug("In Reply To: " + inReplyTo);
if (attachments != null) {
for (int i = 0; i < attachments.size(); i++) {
LiferayAttachment liferayAttachment = attachments.get(i);
if (liferayAttachment.getAttachment() != null) {
String path = liferayAttachment.getAttachment().getAbsolutePath();
_log.debug("Attachment # path" + (i + 1) + ": " + path);
if (liferayAttachment.getAttachmentFileName() != null) {
_log.debug("Attachment # fileName" + (i + 1) + ": " + liferayAttachment.getAttachmentFileName());
