Send booking confirmation to multiple email addresses

WordPress Event Management, Calendars & Registration Forums General Question Send booking confirmation to multiple email addresses

This topic contains 1 reply, has 2 voices, and was last updated by  Stephen Harris 10 years, 4 months ago.

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

    Hi,

    there is a need for solution where the booking confirmation email should be sent to multiple addresses, e.g. in a case where a person signs in for a course but his/her boss pays for it and the confirmation should go to the boss also.

    I’m thinking what would be the right way to do this;

    a) add an extra field in the booking form and ask for any extra email addresses, and send the confirmation to those too.
    b) send the booking confirmation to the admin as bcc and let him/her forward the email manually.

    Any thoughts?

    Mikko Siikaniemi
    #13227

    Option (a) would work well. However, I would probably add the “additional email” field programatically rather than via the form customiser. The sole reason being one of convenience. If you add a field using the form customiser it is given a numeric ID which identifies itself in the form. When e-mailing the booking confirmation you will use that ID to retrieve the appropriate bit of information (i.e. the additional e-mail). This is fine, but if you delete the field and recreate it, it will have a different ID, additionally if you create more forms you will have to create the field for each one (and it will have a different ID). In both cases, you will have to change your code. These aren’t insurmountable problems but if you add the field via the form API you specify the (unique) ID. This means you can ensure the field is always added to the form and has a known ID that never changes.

    I’ve used your specific use case as the basis of a brief tutorial on how to add an element to the booking form via the API: http://wp-event-organiser.com/blog/tutorial/using-form-api-add-additional-fields/

    Stephen Harris
Viewing 2 posts - 1 through 2 (of 2 total)
To enable me to focus on Pro customers, only users who have a valid license for the Pro add-on may post new topics or replies in this forum. If you have a valid license, please log-in or register an account using the e-mail address you purchased the license with. If you don't you can purchase one here. Or there's always the WordPress repository forum.