• <?php
    /*
    Template Name: Contact Page
    */
    ?>
    <?php get_header(); global $wp_theme_options; ?>
    <!--page_contact.php-->
    
    	<div id="container" class="clearfix">
    
    		<div id="content">
    
    <?php if (have_posts()) : // the loop ?>
    <?php while (have_posts()) : the_post(); // the loop ?>
    
    			<!--post title-->
    			<h1 class="pagetitle" id="post-<?php the_ID(); ?>"><?php the_title(); ?></h1>
    
    				<div class="entry">
    					<!--post text with the read more link-->
    					<?php the_content(); ?>
    					<!--the contact form code-->
    					<?php if ( ! empty( $GLOBALS['ithemes_contact_page'] ) ) : ?>
    						<?php $GLOBALS['ithemes_contact_page']->render(); ?>
    					<?php endif; ?>
    				</div>
    
    			<?php //comments_template(); // uncomment this if you want to include comments template ?>
    
    <?php endwhile; //end post ?>
    <?php else : //do not delete ?>
    
    			<h3><?php _e("Page Not Found"); ?></h3>
    			<p><?php _e("We're sorry, but the page you are looking for isn't here."); ?></p>
    			<p><?php _e("Try searching for the page you are looking for or using the navigation in the header or sidebar"); ?></p>
    
    <?php endif; //do not delete ?>
    
    		</div><!--end content div-->
    
    <?php get_sidebar(); ?>
    
    <?php get_footer(); ?>

    Hi all, i have been trying to use the contact us page to sent messages directly to my email inbox. But i am not too sure how it works. Any kind soul can help me out.
    FYI
    I understand that once, i type a message in the text boxes of the contact page, the info is store somewhere(database?? )before sending it to me email. which i think i need to include it in the codes.

Viewing 2 replies - 1 through 2 (of 2 total)
  • Hi,

    I’m not sure what plugin you’re using, but the code related to sending the mail is added via an include. If you’ve had this site designed for you by someone else, I would recommend the Contact Form 7, it’s a highly configurable, and easy to use plugin. It generates the form, and gives you get code to page into the WordPress page, so you don’t have to mess around with code in the php files.

    Generally, if it’s just emailing you, the information will probably not be stored in a database first, it’s used POSTed to another script that will send out the mail.

    Good luck.

    Thread Starter jiaxuan90

    (@jiaxuan90)

    Thks harmck, i tried it. but i still get this error message (Failed to send your message. Please try later or contact administrator by other way.) whenever i try send a test mail to in gmail.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Contact Page not able to sent to email’ is closed to new replies.