Contact Form 7 Special Mail 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.

Unlike other mail-tags, special mail-tags are independent from form fields or the submitter’s input. You can place these special mail-tags anywhere mail-tags are allowed to be used, such as in the message body or other mail fields.

Special Mail Tags for Submissions

1
[_remote_ip]

 — This tag is replaced by the submitter’s IP address.

1
[_user_agent]

 — This tag is replaced by the submitter’s user agent (browser) information.

1
[_url]

 — This tag is replaced by the URL of the page in which the contact form is placed.

1
[_date]

 — This tag is replaced by the date of the submission.

1
[_time]

 — This tag is replaced by the time of the submission.

1
[_invalid_fields]

 — This tag is replaced by the number of form fields with invalid input.

1
[_serial_number]

 — This tag is replaced by a numeric string whose value increments, so this tag can work as the serial number of each submission.

Leave a Reply