[opencms-dev] Error sending mail form

Mario Jäger m.jaeger at alkacon.com
Mon Nov 30 12:06:44 CET 2009


Hi Oliver,

The template one form module is an old module. We advise to use the OAMP formgenerator 
module. This module extends a basic OpenCms installation with the capability to create 
highly configurable online input forms. It provides many additional features. These are
described in the OAMP formgenerator documentation.

You can download this module here: 
http://www.alkacon.com/de/modules/downloads/alkacon_oamp_webform_1.3.1.html


To send mails with the old template one form module you also have to set a CC and a BCC
mail address in the 'Advanced configuration' node from the email form.

-- 
Kind Regards,
Mario.
 
-------------------
Mario Jäger
 
Alkacon Software GmbH  - The OpenCms Experts                    
http://www.alkacon.com - http://www.opencms.org

Oliver Berse schrieb:
> Hello all,
>
> I use templateone.form for a sipmle mail form (OpenCMS 7.5). The form 
> contains the fields title (selectBox), name & email (text) and message 
> (textarea). When I send the form I get this error: "Error description: 
> Address List provided was invalid".
> The template-elements property of my form page is:
> /system/modules/org.opencms.frontend.templateone.form/pages/form.html
>
> I guess the error occurs in form.html on the method cms.sendMail():
>
> if (! showForm) {
>     // form has been submitted with correct values, decide further actions
>     if (cms.showCheck()) {
>         // show optional check page
>         request.setAttribute("formhandler", cms);
>         cms.include("../elements/check.jsp");
>     } else if (cms.getFormConfiguration().hasTargetUri()) {
>         
> response.sendRedirect(cms.link(cms.getFormConfiguration().getTargetUri()));
>     } else {
>         // try to send a notification email with the submitted form 
> field values
>        
>         if (cms.sendMail()) {  // Errror?
>             // successfully sent mail, show confirmation end page
>             request.setAttribute("formhandler", cms);
>             cms.include("../elements/confirmation.jsp");
>         } else {
>             // failure sending mail, show error output %>
>             <h3><%= messages.key("form.error.mail.headline") %></h3>
>             <p><%= messages.key("form.error.mail.text") %></p>
>
>             Error description: <%= 
> (String)cms.getErrors().get("sendmail") %>
>             <%
>         }
>     }
>    
>
> Any idea?
>
> best regards,
> Oliver
> ------------------------------------------------------------------------
>
>
> _______________________________________________
> This mail is sent to you from the opencms-dev mailing list
> To change your list options, or to unsubscribe from the list, please visit
> http://lists.opencms.org/mailman/listinfo/opencms-dev



More information about the opencms-dev mailing list