Okay
  Public Ticket #2764036
Adding attendee mail to e-mail template
Closed

Comments

  •  2
    saleswizardbv started the conversation

    Hey guys, 

    thanks for the outstanding support so far. Appreciate it! 

    I was wondering if there is a variable for the attendee e-mail for the RVSP email-adres. Something like {{attendee_email}} ?


    Thanks in advance!


  •  771
    Zhivko replied

    Hi,

    Sorry for the late reply.

    Try following:

    Open your theme or child-theme functions.php file and insert somewhere at the bottom:

    add_filter('stec_send_event_author_new_attendee', function ($data, $event, $attendee) {
        add_filter('stec_mail_add_special_words', function ($filter, $text, $event) use ($attendee) {
            $filter['replace'][] = '{{attendee_email}}';
            $filter['with'][] = $attendee ? $attendee->get_email() : '';
            return $filter;
        }, 10, 3);
        return $data;
    }, 10, 3);

    Then you should be able to use {{attendee_email}} special word in the rsvp template.


    Stachethemes Developer