Contact form 7 special mail-tags

Contact form 7 Special Mail-Tags

The Contact form 7, one of the most used and customisable web-to-mail data form comes with magical tags.

There may be times when you need more information than just the submitter’s input through contact form fields.
For example, you may need to know the submitter’s IP address for security reasons. For such purposes, special mail-tags can be very helpful

[_remote_ip] — This tag is replaced by the submitter’s IP address.
[_user_agent] — This tag is replaced by the submitter’s user agent (browser) information.
[_url] — This tag is replaced by the URL of the page in which the contact form is placed.
[_date] — This tag is replaced by the date of the submission.
[_time] — This tag is replaced by the time of the submission.
[_invalid_fields] — This tag is replaced by the number of form fields with invalid input.
[_post_id] — This tag is replaced by the ID of the post.
[_post_name] — This tag is replaced by the name (slug) of the post.
[_post_title] — This tag is replaced by the title of the post.
[_post_url] — This tag is replaced by the permalink URL of the post.
[_post_author] — This tag is replaced by the author name of the post.
[_post_author_email] — This tag is replaced by the author email of the post.
[_site_title] — This tag is replaced by the title of the website.
[_site_description] — This tag is replaced by the description (tagline) of the website.
[_site_url] — This tag is replaced by the home URL of the website.
[_site_admin_email] — This tag is replaced by the email address of the primary admin user of the website.
[_user_login] — This tag is replaced by the login name of the user.
[_user_email] — This tag is replaced by the email address of the user.
[_user_url] — This tag is replaced by the website URL of the user.
[_user_first_name] — This tag is replaced by the first name of the user.
[_user_last_name] — This tag is replaced by the last name of the user.
[_user_nickname] — This tag is replaced by the nickname of the user.
[_user_display_name] — This tag is replaced by the display name of the user.

Scroll to Top
MENU