As you know you can easily edit the message that will be send to you or your users with the help of Contact Form plugin by Supsystic. Just open Submit Options tab in the settings of your contact form and fill the Message field.
However, many of you don’t want to have this message static. The data in this message should vary in the name of your customer or the info that he filled in the fields of a contact form. So how can you do it?
If you want to add variable information to your message, just use the following items:
- [sitename] – name of your site,
- [siteurl] – URL address of your site,
- [user_FIELD_NAME] – any user field, entered by user, where FIELD_NAME – is name of required field
- [form_data] – only for Message field, it will contain full generated input form data.
For example, you want to send an email to the user who filled your contact form. Just use [user_email] item in TO field. But don’t forget to enter there your email as well, otherwise you won’t receive an email from your contact form with info filled in by user. In fact you can add to TO field several emails separated by comma.
Or if you’d like to be able to reply directly to the sender (after you get an email with his information), it is also possible. Just add [user_email] to Reply To field.
Or maybe you want to have the same subject in your message as a user wrote while filling your table. Then you need to use the [user_FIELD_NAME] item. Just open the Fields tab in the settings of your Contact Form by Supsystic and click on Subject field. You’ll see the settings of this field.
Copy the name of the field and paste it in the item [user_FIELD_NAME] instead of FIELD_NAME. Afterwords you can add it into Subject field on Submit Options tab. So it will look like that:
You can add any variable from fields that your contact form has into the message on Submit Options tab, just using [user_FIELD_NAME]. But remember that FIELD_NAME should be exactly the same like on your Fields tab settings.
And don’t forget to save the contact form after you made some changes.
Check more about Contact Form plugin in general and how it can be useful for your site