Page 1 of 2 12 LastLast
Results 1 to 10 of 11

Thread: Divert Contact Form Emails to Admin

  1. #1
    Thread Starter
    Member
    Not a Verified Customer
    Wamba's Avatar
    Join Date
    Apr 2010
    Posts
    56
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Divert Contact Form Emails to Admin

    Hello, How would I go about diverting the contact form emails to an admin email address. I want to do this so that I can monitor the replies, and only forward on the genuine ones.

    My site is a niche one, both in terms of geographical and interest demographics. One can get lots of obviously scammy and spammy replies. By sending all the contact form replies to me first, I can filter out the bad ones, and provide a better experience to my users.

    Here is the piece of code I am guessing I need to edit - in include/sidebar-contact.php

    Code:
    if (isset($_POST['submit']) && $_POST['send_email'] == 'yes') {
    
        // get the submitted math answer
        $rand_post_total = (int)$_POST['rand_total'];
    
        // compare the submitted answer to the real answer
        $rand_total = (int)$_POST['rand_num'] + (int)$_POST['rand_num2'];
    
        // if it's a match then send the email
        if ($rand_total == $rand_post_total) {
            cp_contact_ad_owner_email($post->ID);
            $msg = '<p class="green center">' . __('Your message has been sent!', 'cp') . '</p>';
        } else {
            $msg = '<p class="red center">' . __('ERROR: Incorrect captcha answer', 'cp') . '</p>';
        }
    
    }
    cp_contact_ad_owner_email($post->ID);

    So do I just insert my email address there in the red part somehow? Please advise, thank you

  2. #2
    Thread Starter
    Member
    Not a Verified Customer
    Wamba's Avatar
    Join Date
    Apr 2010
    Posts
    56
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Re: Divert Contact Form Emails to Admin

    You must be an AppThemes customer and logged in to view this response. Join today!

  3. #3
    pepsi's Avatar
    Join Date
    Mar 2009
    Location
    New Zealand
    Posts
    14,881
    Thanks
    91
    Thanked 806 Times in 721 Posts

    Re: Divert Contact Form Emails to Admin

    You must be an AppThemes customer and logged in to view this response. Join today!
    Please help our moderating team work more efficiently by not sending us support questions via PM. You can read more about how AppThemes support works here. Thank you.

  4. #4
    Senior Member dazzaboo2000's Avatar
    Join Date
    Sep 2009
    Posts
    133
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Re: Divert Contact Form Emails to Admin

    You must be an AppThemes customer and logged in to view this response. Join today!

  5. #5
    Thread Starter
    Member
    Not a Verified Customer
    Wamba's Avatar
    Join Date
    Apr 2010
    Posts
    56
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Re: Divert Contact Form Emails to Admin

    You must be an AppThemes customer and logged in to view this response. Join today!

  6. #6
    Thread Starter
    Member
    Not a Verified Customer
    Wamba's Avatar
    Join Date
    Apr 2010
    Posts
    56
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Re: Divert Contact Form Emails to Admin

    You must be an AppThemes customer and logged in to view this response. Join today!

  7. #7
    Member Almost's Avatar
    Join Date
    Jul 2010
    Posts
    97
    Thanks
    14
    Thanked 3 Times in 2 Posts
    You must be an AppThemes customer and logged in to view this response. Join today!

  8. #8
    Member Almost's Avatar
    Join Date
    Jul 2010
    Posts
    97
    Thanks
    14
    Thanked 3 Times in 2 Posts
    You must be an AppThemes customer and logged in to view this response. Join today!

  9. #9
    Veteran demonlee's Avatar
    Join Date
    Mar 2011
    Location
    Antas, Spain
    Posts
    574
    Thanks
    6
    Thanked 51 Times in 46 Posts
    You must be an AppThemes customer and logged in to view this response. Join today!

  10. The Following 2 Users Say Thank You to demonlee For This Useful Post:

    rubencio (May 11th, 2013), Almost (May 28th, 2011)

  11. #10
    barukar's Avatar
    Join Date
    Sep 2010
    Location
    Brasil, São Paulo, SP
    Posts
    6,779
    Thanks
    185
    Thanked 740 Times in 622 Posts
    You must be an AppThemes customer and logged in to view this response. Join today!
    Please help our moderating team work more efficiently by not sending us support questions via PM. You can read more about how AppThemes support works here. Thank you.

    -------------------------------------------------------------------------------------------
    Projects: ClassiNoiva - Classimóveis - vocênoenem - i50 - Clube DETRAN

  12. The Following User Says Thank You to barukar For This Useful Post:

    Almost (May 28th, 2011)

Page 1 of 2 12 LastLast

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Demo for Admin
    By winmonaye in forum Showcase & Feedback
    Replies: 8
    Last Post: June 6th, 2009, 11:43 AM
  2. How To Hide wp-admin page
    By bili.ph in forum ClassiPress General Discussion
    Replies: 3
    Last Post: April 20th, 2009, 03:25 AM