• Hi,

    I have read the threads
    http://wordpress.org/support/topic/send-facilitator-an-email?replies=4

    and the other one
    http://wordpress.org/support/topic/need-email-sent-to-event-organizer?replies=10

    But i don’t understand them at all.

    could you please give me the code or tell me where or how to put the code in.
    I would like to send an email to the event organiser once someone purchases a ticket.

    I pasted the following code in the functions.php file of my theme but nothing works?

    function my_transition( $new, $old, $post ) {
        if ( $new == $old || $new != 'publish' || $post->post_type != 'tix_attendee' )
            return;
    
        // function to be executed when custom post type tix_attendee is published
    function new_registration_notify() {
    		$message = "Message...";
    		$headers = 'From: Who From <from@emailaddress.com>' . "\r\n";
    		wp_mail('to@emailaddress.com', "Subject...", $message, $headers);
    }
    
    	add_action('publish_tix_attendee', 'new_registration_notify');
    }
    add_action( 'transition_post_status', 'my_transition', 10, 3 );

    I changed the ‘to@emailaddress.com’ to the one i wanted the email sent to?

    thanks

    https://wordpress.org/plugins/camptix/

Viewing 3 replies - 1 through 3 (of 3 total)
  • Thread Starter tim_patt

    (@tim_patt)

    Any news on this yet??? Thanks

    Thread Starter tim_patt

    (@tim_patt)

    Ok.

    Its been three weeks and I haven’t hear anything

    If no one can reply then I can’t rate this plugin with a good rating
    sorry

    Im really trying to get the most out of this plugin

    Thanks for your quick reply

    Thread Starter tim_patt

    (@tim_patt)

    Any news anyone???
    Help would be appreciated

Viewing 3 replies - 1 through 3 (of 3 total)

The topic ‘Send Even Organiser an email’ is closed to new replies.