Special Mail Tags

There are times when you may wish to follow more than just the user’s input through the contact form. For example, you may wish to know the client’s IP address for security reasons. Contact Form 7 provides some special mail tags for such purposes. You can insert these special mail tags into the Message Body field or other fields in the Mail section.

Tag Description
[_remote_ip] This tag will be replaced by the sender’s client IP address.
[_user_agent] This tag will be replaced by the sender’s user agent information.
[_url] This tag will be replaced by the URL of the contact form.
[_date] This tag will be replaced by the date of the submission.
[_time] This tag will be replaced by the time of the submission.
[_post_id] This tag will be replaced by the ID of the post which contains the contact form.
[_post_name] This tag will be replaced by the name (slug) of the post which contains the contact form.
[_post_title] This tag will be replaced by the title of the post which contains the contact form.
[_post_url] This tag will be replaced by the permalink of the post which contains the contact form.
[_post_author] This tag will be replaced by the author name of the post which contains the contact form.
[_post_author_email] This tag will be replaced by the author email of the post which contains the contact form.

Note that the [_post_*] tag has value only when you put the contact form into content of a post or a page. They are not available if the contact form is put inside a sidebar widget.

The form of those special mail tags has been changed in Contact Form 7 2.2. Old form ([wpcf7.*]) are still supported and able to work.

Just another contact form plugin for WordPress. Simple but flexible.