Page 1 of 1

Map field values to Email addresses error - Invalid address:

Posted: Thu Aug 29, 2019 5:15 am
by forest-guy
Brand new CMSMS installation on my PC with latest Xampp.

CGBetterForms: 1.10.1
Using handler: Send output via email depending on a dropdown/multi-option field
Map field values to Email addresses:

Code: Select all

1 | webmanager@rmfms.org
2 | editor@rmfms.org
3 | president@rmfms.org
4 | vice-president@rmfms.org
5 | secretary@rmfms.org
6 | treasurer@rmfms.org
Results in the following error:

Code: Select all

Invalid address: (addAnAddress to): webmanager@rmfms.org 2 | editor@rmfms.org 3 | president@rmfms.org 4 | vice-president@rmfms.org 5 | secretary@rmfms.org 6 | treasurer@rmfms.org
As soon as you save the form the return changes to: ;

and makes it one big line in the handler area:

Code: Select all

1 | webmanager@rmfms.org
2 | editor@rmfms.org
3 | president@rmfms.org
4 | vice-president@rmfms.org
5 | secretary@rmfms.org
6 | treasurer@rmfms.org
If I take out all but the 1st entry I get a little further, but it still errors out with:

Code: Select all

Could not instantiate mail function.
I saw that someone else had this same issue a while back but it wasn't solved as none of the developers could replicate the issue.

Anyone have a fix or solution for this?
Thanks

Re: Map field values to Email addresses error - Invalid addr

Posted: Thu Aug 29, 2019 7:21 pm
by forest-guy
Ignore the:

Code: Select all

Could not instantiate mail function.
in the original post. Not relevant (Duh - forgot to sent up sendmail with new xampp)

So it works fine.... as long as you only have one line in the map fields. As soon as you add additional lines and save, the returns get replaced with the 
 as indicated above.

Re: Map field values to Email addresses error - Invalid addr

Posted: Thu Aug 29, 2019 7:57 pm
by calguy1000
I have made corrections to the editor processing for the next version of CGBF.

re: Map field values to Email addresses error - Invalid addr

Posted: Tue Sep 03, 2019 4:10 pm
by forest-guy
;D
Downloaded and installed:
CGBetterForms: 1.10.2
CGExtensions: 1.64.8

Tested with multiple entries in "Send results via email based on value of field contact" handler.

(also added into my form the attribute "data-cgbf-replyto" so a reply to would go to the person sending in the comment - thanks for pointing that out calguy1000)

Everything works like a charm!
Thanks Calguy1000