add bcc to the form

Home Forums WordPress Theme EasyBook – WordPress Theme add bcc to the form

This topic contains 1 reply, has 2 voices, and was last updated by  CTHthemes 3 months, 3 weeks ago.

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #34796

    thesmf
    Participant

    Supported

    Hello
    I would like to know how to add BCC (contacto@mywebsite.com) to the sidebar listing form (azp_widget_author_message.php).
    Here is the code. Notice that the code is not finished and I don’t know if it’s ok.
    Thanks a lot for your help.

    
    <?php
    //$azp_attrs,$azp_content,$azp_element
    $azp_mID = $el_id = $el_class = $hide_widget_on = ''; 
    extract($azp_attrs);
    
    $classes = array(
    	'azp_element',
        'azp_widget_author_message', 
        'azp-element-' . $azp_mID,
        $el_class,
    );
    // $animation_data = self::buildAnimation($azp_attrs); 
    // $classes[] = $animation_data['trigger'];
    // $classes[] = self::buildTypography($azp_attrs);//will return custom class for the element without dot
    // $azptextstyle = self::buildStyle($azp_attrs);
    $classes = preg_replace( '/\s+/', ' ', implode( ' ', array_filter( $classes ) ) );
    if($el_id!=''){
        $el_id = 'id="'.$el_id.'"';
    }
    if(( $hide_widget_on_check = easybook_addons_is_hide_on_plans($hide_widget_on) ) !== 'true') :
    if(get_current_user_id() != get_the_author_meta( 'ID' )):    
    ?>
    	<div class="<?php echo $classes; ?> authplan-hide-<?php echo $hide_widget_on_check;?>" <?php echo $el_id;?>>
            <div class="for-hide-on-author"></div>
    		<div class="box-widget-item fl-wrap">
    	        <div class="box-widget-item-header">
    	            <h3><?php esc_html_e( 'Get in Touch : ', 'easybook-add-ons' ); ?></h3>
    	        </div>
    	        <div class="box-widget">
    	            <div class="box-widget-content">
    	                <form class="chat-lauthor-message-form custom-form" action="#" method="post">
    	                    <fieldset>
    	                    <?php if ( !is_user_logged_in() ) { ?>
    	                        <label><i class="fal fa-user"></i></label>
    	                        <input name="lmsg_name" class="has-icon" type="text" placeholder="<?php esc_attr_e( 'Your Name*', 'easybook-add-ons' ); ?>" value="" required="required">
    	                        <div class="clearfix"></div>
    	                        <label><i class="fal fa-envelope"></i></label>
    	                        <input name="lmsg_email" class="has-icon" type="text" placeholder="<?php esc_attr_e( 'Email Address*', 'easybook-add-ons' ); ?>" value="" required="required">
    	                        <label><i class="fa fa-phone"></i></label>
    	                        <input name="lmsg_phone" class="has-icon" type="text" placeholder="<?php esc_attr_e( 'Phone', 'easybook-add-ons' ); ?>" value="">
    	                    <?php }else{ ?>
    	                    	<input type="hidden" name="sender" value="<?php echo get_current_user_id(); ?>">
    	                    <?php } ?>
    	                        <textarea name="lmsg_message" cols="40" rows="3" placeholder="<?php esc_attr_e( 'Your message:', 'easybook-add-ons' ); ?>"></textarea>
    	                    </fieldset>
    	                    <input type="hidden" name="authid" value="<?php echo get_the_author_meta( 'ID' ); ?>">
    	                    <button class="btn big-btn color-bg flat-btn" type="submit"><?php _e( 'Send Message <i class="fa fa-angle-right"></i>', 'easybook-add-ons' ); ?></button>
    	                </form>
    
    	            </div>
    	        </div>
    	    </div>
    	</div>
    <?php endif; ?>
    <?php endif; 
    
    #34822

    CTHthemes
    Keymaster

    You can use cth_chat_lauthor_message action hook from next version to send email to your email. All data is accessible from $_POST variable.

Viewing 2 posts - 1 through 2 (of 2 total)

You must be logged in to reply to this topic.

New featues: CityBook - Listing & Directory WordPress Theme version 2.1.8 was outUpdate now
+