Support » Plugin: Contact Form 7 » Change form value in Mail Body only

  • Hello, I just need a bit of assistance with regards to changing a form value in my HTML mail body.

    I basically have two restaurants, one in HOUNSLOW and one in WOOD GREEN.

    I have a drop down in my form that allows the customer to choose a restaurant:

    <label> Restaurant*</label>[select* your-restaurant class:comm-field include_blank “DEKU RESTAURANT – Wood Green|WoodGreen” “DEKU RESTAURANT – Hounslow|Hounslow”]

    The two values for the options are ‘WoodGreen’ and ‘Hounslow’

    I want to send the Wood Green bookings to woodgreen@myrestaurant.com and the Hounslow bookings to hounslow@myrestaurant.com

    I can get this working by using this as the send to:
    [your-restaurant]@myrestaurant.com

    This works, however, in my mail body, I would like to put a space in between WoodGreen.

    So in my mail body, whenever I use [your-restaurant], I just want to convert WoodGreen to Wood Green (space in between).

    I understand this can be achieved with a php function (in functions.php) or perhaps another method? Open to any assistance.

    Thanks

    • This topic was modified 4 months, 3 weeks ago by dekudigital.
    • This topic was modified 4 months, 3 weeks ago by dekudigital.
  • You must be logged in to reply to this topic.