I'm not sure exactly what you are asking.
An email sent to the person 1, then sent to 1 and 2, then sent to 1 and 2 and 3, etc?
This will result in tons of email when the list gets large. You can certainly send a single email back to each submitter. Practically anything is possible but custom PHP code is left to the user. It is not something that will be added as a feature to phpFormGenerator.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Your processor.php file should have a line that looks like this:
mail("email@url.com","phpFormGenerator - Form submission","Form data:
The email is being sent to "email@url.com".
This can be changed to
mail($_POST['field_3'],"phpFormGenerator - Form submission","Form data:
Assuming the submitters email address is in field 3. Now it is best you leave the existing mail function alone and just copy the entire function and duplicate it so that you still receive your email and a separate email is sent to your submitter. This way you can change the message if you wish without affecting the one sent to you.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
i believe using a comma delimited list also works: mail("email@url.com, ".$POST['field_3'], "phpFormGenerator ...);
But if you are using a form field as an input to the mail() function, you better be very very careful. Your form can be abused for sending off spam. The spammer will enter a huge mailing list in the user's email address field, and your form will start firing off emails to all the addresses. Trust me, it WILL happen. Spammers are very good at finding these exposed forms.
You should wait until we have an auto responder feature available. If we implement this, we will have proper security checks in place for the user's email address field.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Is there any way to set up an automated email reply to everyone who submits the form?
I'm not sure exactly what you are asking.
An email sent to the person 1, then sent to 1 and 2, then sent to 1 and 2 and 3, etc?
This will result in tons of email when the list gets large. You can certainly send a single email back to each submitter. Practically anything is possible but custom PHP code is left to the user. It is not something that will be added as a feature to phpFormGenerator.
Yes, Just a single email back to each individual submitter.
Does anyone have the custom code to add to the processor.php file to include an automated reply?
Your processor.php file should have a line that looks like this:
mail("email@url.com","phpFormGenerator - Form submission","Form data:
The email is being sent to "email@url.com".
This can be changed to
mail($_POST['field_3'],"phpFormGenerator - Form submission","Form data:
Assuming the submitters email address is in field 3. Now it is best you leave the existing mail function alone and just copy the entire function and duplicate it so that you still receive your email and a separate email is sent to your submitter. This way you can change the message if you wish without affecting the one sent to you.
i believe using a comma delimited list also works: mail("email@url.com, ".$POST['field_3'], "phpFormGenerator ...);
But if you are using a form field as an input to the mail() function, you better be very very careful. Your form can be abused for sending off spam. The spammer will enter a huge mailing list in the user's email address field, and your form will start firing off emails to all the addresses. Trust me, it WILL happen. Spammers are very good at finding these exposed forms.
You should wait until we have an auto responder feature available. If we implement this, we will have proper security checks in place for the user's email address field.