The email settings are ment to be as flexible as possible. You can insert email addresses directly in the “from” and/or “to” fields, e.g. [email protected]
or My name <[email protected]>
. This would be a good starting point in order to test Jazzy Forms’ email feature.
Usually that’s not enough. You also want to be able to send out information back to the email address that the user has typed in.
As an example, go to the form Elements section and set up two input elements with IDs name
and email
. Then, in the Email section, set the “to” field to {{name}} <{{email}}>
. The double curly braces denote placeholders that will be replaced with the values from the corresponding form elements.
Unfortunately with PHP when something goes wrong with email, it is quite difficult to tell why. Even if PHP indicates success this only means the data has been passed successfully to the mailing system. From there a lot of things can fail. Among these are:
- Email might not be set up correctly in your PHP.ini settings
- Your hosting provider may block email altogether.
- Your hosting provider may block email from or to non-existing or unknown addresses
- Your mail might be blocked on the way as spam
- The message might end up in the recipient’s spam folder.
- The delivery might simply take more than you think
… and the list goes on…