Hi Folks,
the title pretty much says what I am trying to do, but to clarify:
I have a very small Contact Us form (First name, Last name, Telephone, Email, Enquiry). The form is validated correctly, and the email is sent.
I want the From name in the received email to be the First name + Last name that the user entered into the form. The following line works fine:
&emailFromName=`[[+FirstName]] [[+LastName]]`
I also want the email address in the received email to be the Email address that the user entered into the form. The following line results in the email not being sent, with no error message:
If I enter a hardcoded email address, such as
, the email is sent ok.
The form field names are correct (validation works and the email fields are filled correctly).
Can anyone suggest where I am going wrong, and how I can get the user's email address entered in the form into the snippet call?
My snippet call:
[[!FormIt?
&hooks=`spam,email,redirect`
&submitVar=`contactUsFormSubmit`
&validationErrorMessage=`<p class="error">Woops! Something is entered wrongly or missing. Please check the values you have entered:</p><ul class="errors">[[+errors]]</ul>`
&emailTpl=`contactEmail`
&emailTo=`
[email protected]`
&--emailFrom=`
[email protected]`
&emailFrom=`[[+Email]]`
&emailFromName=`[[+FirstName]] [[+LastName]]`
&emailSubject=`Enquiry from website`
&redirectTo=`7`
&validate=`antispam:blank,
FirstName:required,
LastName:required,
Email:email:required,
Enquiry:required:stripTags`
]]
I am using:
MODX Revolution 2.2.2-pl (traditional)
FormIt 2.0.3 pl
Let me know any other details you might need.
Thanks.