Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #705216

    Where can I find the file that controls the output of emails sent from Contact Forms?

    I want to add some extra info to the emails and add line breaks to make the email easy to read.

    Example of existing output :-

    First Name: Sean
    Family Name: xxxx
    E-Mail: (Email address hidden if logged out)
    Confirm Email: (Email address hidden if logged out)
    What date will you arrive in Bangkok/Thailand?: 17 / 11 / 2016
    What date will you leave Bangkok/Thailand?: 30 / 11 / 2016
    Have you booked a clinic? If so which one?: Not yet
    Do you need recommendations on clinics/hospitals: Possibly
    Which procedure have you booked and how many days do you expect to be in the hospital/clinic?: Lasik. 1 day
    How many days would you like to book one of our MED-Friends?: 1
    And for how many hours per day?: 2

    How I’d like to have it formatted :-

    First Name: Sean
    Family Name: xxxx

    E-Mail: (Email address hidden if logged out)
    Confirm Email: (Email address hidden if logged out)

    What date will you arrive in Bangkok/Thailand?: 17 / 11 / 2016

    What date will you leave Bangkok/Thailand?: 30 / 11 / 2016

    Have you booked a clinic? If so which one?: Not yet

    Do you need recommendations on clinics/hospitals: Possibly

    Which procedure have you booked and how many days do you expect to be in the hospital/clinic?: Lasik. 1 day

    How many days would you like to book one of our MED-Friends?: 1

    And for how many hours per day?: 2

    Thanks!

    #706703

    Hey seanchk,

    The default contact form doesn’t natively support editing the outputted form information without custom code.

    You can however try using Contact Form 7 as an alternative.

    Best regards,
    Andy

    #706962

    Thanks Andy.

    Contact form 7 is a complete pile of <deleted>

    Can you tell me which file within the Enfold theme is creating the output for the emails?

    Thanks

    Sean

    #708170

    Hi,

    this is about default WordPress behavior and not about Enfold’s functions. Maybe this helps you: https://developer.wordpress.org/reference/functions/wp_mail/

    However, we recommend to work with a plugin like Contact Form 7, if you want to have more control over this WordPress function.

    Best regards,
    Andy

Viewing 4 posts - 1 through 4 (of 4 total)
  • You must be logged in to reply to this topic.