if (returnCode == MailerResult.SEND_GENERAL_ERROR) {
errors.append("<p>").append(trans.translate("mailhelper.error.send.general")).append("</p>");
} else if (returnCode == MailerResult.SENDER_ADDRESS_ERROR) {
errors.append("<p>").append(trans.translate("mailhelper.error.sender.address")).append("</p>");
} else if (returnCode == MailerResult.RECIPIENT_ADDRESS_ERROR) {
errors.append("<p>").append(trans.translate("mailhelper.error.recipient.address")).append("</p>");
} else if (returnCode == MailerResult.TEMPLATE_GENERAL_ERROR) {
errors.append("<p>").append(trans.translate("mailhelper.error.template.general")).append("</p>");
} else if (returnCode == MailerResult.TEMPLATE_PARSE_ERROR) {
errors.append("<p>").append(trans.translate("mailhelper.error.template.parse")).append("</p>");
} else if (returnCode == MailerResult.ATTACHMENT_INVALID) {