Viewing 15 replies - 1 through 15 (of 38 total)
  • You’ll need to work on the settings of the contact form itself. You didn’t specify which plugin you’re using, but check under “Plugins” for that plugin’s entry and see if it specifies a “Settings” menu. If not, look under Settings on the dashboard’s menu and see if there’s a specific submenu for that contact form. Most likely that hasn’t been set yet.

    It could be a case of your email program thinking mail from your site is spam, but most likely it’s a settings problem. Check the settings out first, then if it’s still a problem, let us know here and we’ll try something else!

    Annie

    Thread Starter irishredbloke

    (@irishredbloke)

    these are the active plugins:

    EditorFontsize
    Enhanced Admin Bar with Codex Search
    Jetpack by WordPress.com

    There doesn’t appear to be any options related to the contact form.

    I use gmail, so I’ve checked my spam folder.

    Which contact form plugin are you using or is this included in your theme?

    Typically, for email to be sent from your webhost/server you need to configure the plugin to include the settings for the smtp outgoing server as available from your host. Some may allow using various scripts etc, some not.

    I suggest folks use Contact Form 7 and WP-Mail-Smtp (which helps configure the smpt server settings available to you)

    Thread Starter irishredbloke

    (@irishredbloke)

    here’s a twist:

    when i use my jason@computersofdelaware.com address in the general settings, email address field, it will send an email to that account.

    using jason@computersofde.com hosted by gmail will not work.

    this is using ToomMorel Lite 1.3.2 by InkThemes.com

    OK, but your email settings for the blog are not at all (in every case I’m aware of) related to your settings for the plugin. Just has nothing to do with it. It’s the plugin, I promise you. Try expanding all your menus on the dashboard and see if there is a menu item for the plugin. If you can tell us which plugin you’re using for the contact form, we can be of more help.

    Thread Starter irishredbloke

    (@irishredbloke)

    ok, understood. let me check….

    ok, looks like i have no plugin for the contact form.

    How do you have a contact form, then? What theme are you using? If it’s a custom theme (i.e., one a designer made for you), that might be in the code, but almost always with my clients it’s a plugin…. would you feel comfortable setting me up as a new user and letting me take a look inside?

    Thread Starter irishredbloke

    (@irishredbloke)

    sure i can do that. what do you need?

    What email would you like me to use? I’ll send instructions.

    LOL – I mean, I assume you want me to use jason@computersofde.com.

    Thread Starter irishredbloke

    (@irishredbloke)

    sure that is fine.

    Thread Starter irishredbloke

    (@irishredbloke)

    @swansonphotos

    I installed the plugins you mentioned and hopefully i can get them configured with AnnieSisk

    thanks!

    OK. I took a look at Jason’s settings and in fact, the theme does have a hard-coded form set up as a “Contact Template” for the contact page.

    I’m not that great with coding — I know just enough to find my away around in the code but don’t know what the problem is. It’s supposed to pull the admin email, if I’m reading it correctly, and that is, in fact, as Jason stated – jason@computersofde.com. I’ve provided the code at the end of this post.

    I next tried resetting the Contact page in a default template and using the Contact Form 7, using my own email address to test it. I use Contact Form 7 myself, so I’m familiar with it, but when I tested it, I got a “failure to send” error message on that page (which is a PHP coding problem, according to the plugin developer).

    This is beyond me, at this point. Any suggestions? I’d like to be able to help Jason solve this issue — I’m on this self-development kick to finish what I start, LOL.

    Here’s the complete code for the Contact Template:

    <?php
    /**
     * Template Name: Contact Us Template
     */
    ?>
    <?php
    $nameError='';
    $emailError='';
    $commentError='';
    if(isset($_POST['submitted'])) {
    	if(trim($_POST['contactName']) === '') {
    		$nameError = 'Please enter your name.';
    		$hasError = true;
    	} else {
    		$name = trim($_POST['contactName']);
    	}
    	if(trim($_POST['email']) === '')  {
    		$emailError = 'Please enter your email address.';
    		$hasError = true;
    	} else if (!eregi("^[A-Z0-9._%-]+@[A-Z0-9._%-]+\.[A-Z]{2,4}$", trim($_POST['email']))) {
    		$emailError = 'You entered an invalid email address.';
    		$hasError = true;
    	} else {
    		$email = trim($_POST['email']);
    	}
    	if(trim($_POST['comments']) === '') {
    		$commentError = 'Please enter a message.';
    		$hasError = true;
    	} else {
    		if(function_exists('stripslashes')) {
    			$comments = stripslashes(trim($_POST['comments']));
    		} else {
    			$comments = trim($_POST['comments']);
    		}
    	}
    	if(!isset($hasError)) {
    		$emailTo = get_option('tz_email');
    		if (!isset($emailTo) || ($emailTo == '') ){
    			$emailTo = get_option('admin_email');
    		}
    		$subject = '[PHP Snippets] From '.$name;
    		$body = "Name: $name \n\nEmail: $email \n\nComments: $comments";
    		$headers = 'From: '.$name.' <'.$emailTo.'>' . "\r\n" . 'Reply-To: ' . $email;
    		mail($emailTo, $subject, $body, $headers);
    		$emailSent = true;
    	}
    } ?>
    <?php get_header(); ?>
    <div class="grid_16 alpha">
      <div class="content">
        <div class="content-info">
          <?php if (function_exists('inkthemes_breadcrumbs')) inkthemes_breadcrumbs(); ?>
          <?php if ( have_posts() ) while ( have_posts() ) : the_post(); ?>
          <h2>
            <?php the_title(); ?>
          </h2>
          <div class="dotted_line"></div>
          <?php endwhile;?>
        </div>
        <div class="contact">
          <!--Start Contact Form-->
          <div class="contact-form">
            <?php if ( have_posts() ) while ( have_posts() ) : the_post(); ?>
            <?php if(isset($emailSent) && $emailSent == true) { ?>
            <div class="thanks">
              <p>Thanks, your email was sent successfully.</p>
            </div>
            <?php } else { ?>
            <?php if(isset($hasError) || isset($captchaError)) { ?>
            <p class="error">Sorry, an error occured.
            <p>
              <?php } ?>
            <form action="<?php the_permalink(); ?>" class="contactForm" method="post">
              <label for="contactName">Your Name: *</label>
              <br/>
              <input type="text" name="contactName" id="contactName" value="<?php if(isset($_POST['contactName'])) echo $_POST['contactName'];?>" class="required requiredField" />
              <br/>
              <?php if($nameError != '') { ?>
              <span class="error"> <?php echo $nameError;?> </span>
              <?php } ?>
              <label for="email">Your Email: *</label>
              <br/>
              <input type="text" name="email" id="email" value="<?php if(isset($_POST['email']))  echo $_POST['email'];?>" class="required requiredField email" />
              <br/>
              <?php if($emailError != '') { ?>
              <span class="error"> <?php echo $emailError;?> </span>
              <?php } ?>
              <label for="commentsText">Your Message: *</label>
              <br/>
              <textarea name="comments" id="commentsText" rows="20" cols="30" class="required requiredField"><?php if(isset($_POST['comments'])) { if(function_exists('stripslashes')) { echo stripslashes($_POST['comments']); } else { echo $_POST['comments']; } } ?>
    </textarea>
              <br/>
              <?php if($commentError != '') { ?>
              <span class="error"> <?php echo $commentError;?> </span>
              <?php } ?>
              <input class="send" type="submit" value="Send Email">
              </input>
              <input type="hidden" name="submitted" id="submitted" value="true" />
            </form>
            <?php } ?>
            <!-- End the Loop. -->
          </div>
          <!--End Contact Form-->
        </div>
        <?php the_content(); ?>
        <?php endwhile;?>
        <!--End Post-->
        <div class="clear"></div>
        <!--End Content Wrapper-->
      </div>
    </div>
    <!--Start Sidebar-->
    <?php get_sidebar(); ?>
    <!--End Sidebar-->
    <div class="clear"></div>
    <div class="hr_big"></div>
    <!--End Content Wrapper-->
    </div>
    <div class="clear"></div>
    <!--End Main_wrapper-->
    <?php get_footer(); ?>

    typically, the send to email address must be authenticated by smtp server…using yours won’t work…with the additional plugin it can be set (on most hosts) to gmail etc…review faq’s for plugins and author sites.

    Thread Starter irishredbloke

    (@irishredbloke)

    @swanson

    does this look correct? just a quick google.

    Gmail SMTP server address: smtp.gmail.com
    Gmail SMTP user name: jason@computersofde.com
    Gmail SMTP password: mypassword
    Gmail SMTP port: 465
    Gmail SMTP TLS/SSL required: yes

Viewing 15 replies - 1 through 15 (of 38 total)
  • The topic ‘Not receiving emails from Contact Us form’ is closed to new replies.