I am using the following script to send an attached PDF back to my client when their customers complete and submit the form. Everything works well, except that it lists the email address twice in the "to" field (the second is not a complete address so it fails).
the result is that one email goes through as expected, but the customer also receives an "undeliverable" notice in their inbox.
has anyone seen this before? or can you see the problem with the script?