Forums

Contact Form 7
Additional special mail tag for contact form (1 post)

  1. SeekingSerenity
    Member
    Posted 4 months ago #

    We're having issues with people submitting duplicate contact forms. To automate the deletion of duplicate emails I added the following code to line 16 of contact-form-7/modules/special-mail-tags.php:

    elseif ( '_user_agent' == $name )
                    $output = preg_replace( '/[^0-9A-Za-z.:()\[\], ]/', '', $_SERVER['HTTP_USER_AGENT'] );

    This allows me to send emails with both the remote IP address and the remote user agent. I can then use external email logic to detect duplicates or spammers more easily.

    If it's useful to someone else, great, if not move along quietly... :)

    http://wordpress.org/extend/plugins/contact-form-7/

Reply

You must log in to post.

About this Plugin

About this Topic

  • RSS feed for this topic
  • Started 4 months ago by SeekingSerenity
  • This topic is not a support question
  • WordPress version: 3.3.1