Contact Form not sending emails

Discussion in 'Local Business WordPress Theme' started by daxvincent, Aug 11, 2014.

  1. daxvincent

    daxvincent Guest

    Joined:
    May 31, 2014
    Messages:
    1
    Likes Received:
    0
    Hi there, I'm having troubles with the Local Business Theme: the theme has 2 contact forms on it - one is on the front page, the leads capture form, and the other is the normal contact page. Recently, they stopped sending emails correctly.

    I was able to apply a "hack" to the code for the front/ leads contact form, but the same hack doesn't work on the normal contact form itself.

    The normal contact form did used to work. I think after an automatic Wordpress upgrade is when the trouble started.

    I have already tried changing this code inside the "template-contact.php", but it still did not work:

    }
    if (!isset($hasError)) {
    $emailTo = get_option('tz_email');
    if (!isset($emailTo) || ($emailTo == '')) {
    $emailTo = get_option('admin_email');
    }
    $subject = '[Inquiry From Your Website] From ' . $name;
    $body = "Name: $name \n\nEmail: $email \n\nComments: $comments";
    $headers = 'From: ' . $name . ' <' . $emailTo . '>' . "\r\n" . 'Reply-To: ' . $email;
    wp_mail($emailTo, $subject, $body, $headers);
    $emailSent = true;
    }​

    The line in bold blue, before, was "mail($emailTo,...". I added in the "wp_", as per instructions I had read in the forums. Still didn't work.

    Can you please guide me as to what to do so that both the main contact form and the leads capture form will send emails?

    Thanks and best regards!!

    Dax Vincent
     
  2. Yogesh

    Yogesh Guest

    Joined:
    Aug 8, 2014
    Messages:
    2,052
    Likes Received:
    41
    Hello !

    Try it if (!isset($emailTo) || ($emailTo == ''" ))
    in place of if (!isset($emailTo) || ($emailTo == ''))

    And we have got your concern, and started working over it. We will reply you soon.

    Thanks & Regards
    Yogesh Bhade
     
  3. lawnile

    lawnile Guest

    Joined:
    Jun 11, 2014
    Messages:
    2
    Likes Received:
    0
    Hello i am having the same issue with my contact page not sending any message, please share the solution
     
  4. Yogesh

    Yogesh Guest

    Joined:
    Aug 8, 2014
    Messages:
    2,052
    Likes Received:
    41
    Hello Lawnile,

    Which theme you are using.
    Note : Please create your separate threads while asking technical issues. Do not post in someone else's thread. Start your own topic. It will easier for us that way to provide you precise and on time support.


    Thanks & Regards
    Yogesh Bhade
     
  5. bobgalloway

    bobgalloway New Member

    Joined:
    Dec 28, 2011
    Messages:
    9
    Likes Received:
    0
  6. Yogesh

    Yogesh Guest

    Joined:
    Aug 8, 2014
    Messages:
    2,052
    Likes Received:
    41
    Hello,

    We have checked our theme, email sends from contact us page, please reinstall theme OR contact your hosting support.


    Thanks & Regards
    Yogesh Bhade
     
  7. lawnile

    lawnile Guest

    Joined:
    Jun 11, 2014
    Messages:
    2
    Likes Received:
    0
  8. Yogesh

    Yogesh Guest

    Joined:
    Aug 8, 2014
    Messages:
    2,052
    Likes Received:
    41
    Hello Lawnile,

    We have checked our theme, email sends from contact us page, please reinstall theme OR contact your hosting support.

    Thanks & Regards
    Yogesh Bhade
     

Share This Page