You do not have to specify the mail server.
Not getting the email should not be an issue. Have your host send you a copy of the server error, and mail logs.
It is possible to do anything you want but adding the ability for a form user to specify email destination addresses will open your form to major abuse. I don't recommend it but it is your form.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Hi;
I'm new to phpFormGenerator. I installed it into a linux box on my web host through fantastico.
Where do I specify my hosts outgoing email server? Do I need to? I generated an email form, get no error messages, but no email either.
Lastly, is it possible to generate an email form where the user can specify who gets the email and send that email to multiple addresses?
Thanks in advance for this information
"Lastly, is it possible to generate an email form where the user can specify who gets the email and send that email to multiple addresses?"
I am interested in finding out how to do that part ;) Been trying for days now and no go. Any tips on how to do this from you PHP gurus =P
It is possible but not recommended.
The first field in the mail function takes the "send to" address. Something like this works:
mail($_POST['field_3'],"phpFormGenerator - Form submission","Form data:
Name: " . $_POST['field_1'] . "
Phone Number: " . $_POST['field_2'] . "
E-Mail Address: " . $_POST['field_3'] . "
I am Interested in: $field_4_opts
powered by phpFormGenerator.
");
You do not have to specify the mail server.
Not getting the email should not be an issue. Have your host send you a copy of the server error, and mail logs.
It is possible to do anything you want but adding the ability for a form user to specify email destination addresses will open your form to major abuse. I don't recommend it but it is your form.