Index: src/main/java/info/magnolia/module/form/processors/BaseFormProcessorImpl.java =================================================================== --- src/main/java/info/magnolia/module/form/processors/BaseFormProcessorImpl.java (revision 30283) +++ src/main/java/info/magnolia/module/form/processors/BaseFormProcessorImpl.java (working copy) @@ -76,6 +76,11 @@ protected void sendMail(String body, String from, String subject, String to, String contentType) throws Exception { + sendMail(body, from, subject, to, null, null, contentType); + } + + protected void sendMail(String body, String from, String subject, String to, String cc, String bcc, String contentType) + throws Exception { MgnlEmail email; Map parameters = getParameters(); @@ -84,6 +89,12 @@ email.setFrom(from); email.setSubject(subject); email.setToList(to); + if (StringUtils.isNotBlank(cc)) { + email.setCcList(cc); + } + if (StringUtils.isNotBlank(bcc)) { + email.setBccList(bcc); + } email.setBody(body); MailModule.getInstance().getHandler().sendMail(email); Index: src/main/java/info/magnolia/module/form/processors/SendContactEMailProcessor.java =================================================================== --- src/main/java/info/magnolia/module/form/processors/SendContactEMailProcessor.java (revision 30283) +++ src/main/java/info/magnolia/module/form/processors/SendContactEMailProcessor.java (working copy) @@ -57,9 +57,11 @@ String from = content.getNodeData("contactMailFrom").getString(); String subject = content.getNodeData("contactMailSubject").getString(); String to = content.getNodeData("contactMailTo").getString(); + String cc = content.getNodeData("contactMailCc").getString(); + String bcc = content.getNodeData("contactMailBcc").getString(); String contentType = content.getNodeData("contentType").getString(); - sendMail(body, from, subject, to, contentType); + sendMail(body, from, subject, to, cc, bcc, contentType); } catch (Exception e) { log.error("Contact email", e); return FormUtil.getMessage("SendContactEMailProcessor.errorMessage", ""); Index: src/main/resources/info/magnolia/module/form/messages_en.properties =================================================================== --- src/main/resources/info/magnolia/module/form/messages_en.properties (revision 30283) +++ src/main/resources/info/magnolia/module/form/messages_en.properties (working copy) @@ -59,6 +59,10 @@ dialog.form.tabContactEmail.contactMailFrom.description = You can use form field names with freemarker tags i.e. ${mail} dialog.form.tabContactEmail.contactMailTo.label = To dialog.form.tabContactEmail.contactMailTo.description = You can use form field names with freemarker tags i.e. ${mail} +dialog.form.tabContactEmail.contactMailCc.label = CC +dialog.form.tabContactEmail.contactMailCc.description = Copy of the mail will be sent to these addresses which will be visible to the other recipients. You can use form field names with freemarker tags i.e. ${mail} +dialog.form.tabContactEmail.contactMailBcc.label = BCC +dialog.form.tabContactEmail.contactMailBcc.description = A copy of the mail will be sent to these addresses which will not be visible to the other recipients. You can use form field names with freemarker tags i.e. ${mail} dialog.form.tabContactEmail.contactMailSubject.label = Subject dialog.form.tabContactEmail.contactMailSubject.description = You can use form field names with freemarker tags i.e. ${subject} dialog.form.tabContactEmail.contactMailBody.label = Text