Uploaded image for project: 'Forms'
  1. Forms
  2. FORMS-153

Error when sending a form to more than on e-mail

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Critical Critical
    • 1.5.0
    • None
    • None
    • None

      How to reproduce

      • connect to cms
      • create a form
      • set recipients on the form, for example: f.r@anyware-services.com;test@anyware-services.com

      Actual behavior

      • An error occured

      ==> /home/cms/Ametys_CMS/application/cms/WEB-INF/logs/servlet-engine-2012-12-18.log <==
      2012-12-18 15:38:47,082 ERROR [org.ametys.plugins.forms.processing.ProcessFormAction] (http-8080-7;/generate/plugins/forms/submit.html) Error sending the notification mail to f.r@anyware-services.com;p.t@anyware-services.com
      javax.mail.internet.AddressException: Illegal semicolon, not in group in string ``f.r@anyware-services.com;p.t@anyware-services.com'' at position 38
      at javax.mail.internet.InternetAddress.parse(InternetAddress.java:863)
      at javax.mail.internet.InternetAddress.parse(InternetAddress.java:575)
      at javax.mail.internet.InternetAddress.<init>(InternetAddress.java:107)
      at org.ametys.runtime.plugins.core.mail.SendMailHelper.sendMail(SendMailHelper.java:238)
      at org.ametys.runtime.plugins.core.mail.SendMailHelper.sendMail(SendMailHelper.java:147)
      at org.ametys.plugins.forms.processing.ProcessFormAction._sendNotificationEmails(ProcessFormAction.java:1291)
      at org.ametys.plugins.forms.processing.ProcessFormAction._sendEmails(ProcessFormAction.java:1262)
      at org.ametys.plugins.forms.processing.ProcessFormAction.act(ProcessFormAction.java:194)
      at org.apache.cocoon.components.treeprocessor.sitemap.ActTypeNode.invoke(ActTypeNode.java:125)

      • Same with spaces between: f.r@anyware-services.com p.t@anyware-services.com

      ==> /home/cms/Ametys_CMS/application/cms/WEB-INF/logs/servlet-engine-2012-12-18.log <==
      2012-12-18 15:42:03,115 ERROR [org.ametys.plugins.forms.processing.ProcessFormAction] (http-8080-4;/generate/plugins/forms/submit.html) Error sending the notification mail to f.r@anyware-services.com p.t@anyware-services.com
      javax.mail.internet.AddressException: Domain contains control or whitespace in string ``f.r@anyware-services.com p.t@anyware-services.com''

      • Same with comma: f.r@anyware-services.com,p.t@anyware-services.com

      ==> /home/cms/Ametys_CMS/application/cms/WEB-INF/logs/servlet-engine-2012-12-18.log <==
      2012-12-18 15:43:18,359 ERROR [org.ametys.plugins.forms.processing.ProcessFormAction] (http-8080-2;/generate/plugins/forms/submit.html) Error sending the notification mail to frederic.ravetier@anyware-servred.ravetier@gmail.com
      javax.mail.internet.AddressException: Illegal address in string ``f.r@anyware-services.com,p.t@anyware-services.com''
      at javax.mail.internet.InternetAddress.<init>(InternetAddress.java:110)
      at org.ametys.runtime.plugins.core.mail.SendMailHelper.sendMail(SendMailHelper.java:238)

            laurence Laurence Aumeunier
            fravetier Frederic Ravetier (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: