Support

Account

Home Forums General Issues how to receive an email after sending the form Reply To: how to receive an email after sending the form

  • thanks for the help
    Does your WP site send emails ok? yes

    Is the form on a custom post page for the recipe? Yes

    here is the form code

    <?php /*Template Name: User Submit*/;?>
    <?php acf_form_head(); ?>
    <?php get_header(); ?>
    
    	<div id="container" >
    
        <div class="row">
        	<div class="col-sm-12">
    
    			<?php /* The loop */ ?>
    			<?php while ( have_posts() ) : the_post(); ?>
    				
    				<h1><?php the_title(); ?></h1>
    				<!-- a supprimer si on enlève l'éditeur par défaut -->
    				<?php the_content(); ?>
    				<!------------>
    				<p> <?php the_field('Ingredients'); ?></p>
    				<p> <?php the_field('Preparation'); ?></p>
    				<p> <?php the_field('Cuisson'); ?></p>
    				<p> <?php the_field('Temps'); ?></p>
    				<p> <?php the_field('Difficulté'); ?></p>
    			<!-- 	<p> <?php the_field('image'); ?></p>-->
    				<p> <?php the_field('gallery'); ?></p>
    				<?php  $options = array('post_id'		=> 'new',
    		'field_groups' => array(4),
    		'post_title'	=> false,
    		
    	
    			'post_type'		=> 'recette',
    			'post_status'	=> 'draft',
    		
    		//'updated_message'    => 'Merci pour votre participation!Votre recette sera publiée prochainement',
    		'return'		=> home_url('merci'),
    		//'submit_value'	=> 'Postez votre recette'
    		'submit_value'	=> 'Send'
    		);
    				 acf_form($options);?>
    
    			<?php endwhile; ?>
    </div>
    		</div><!-- #content -->
    	</div><!-- #primary -->
    
    <?php get_footer(); ?>