Support

Account

Home Forums General Issues Submit Contact Form to ACF Email Address Reply To: Submit Contact Form to ACF Email Address

  • remove the “echo”. Not required, but you should also add some checking and set a default value:

    
    $email_to = 'default@email.com';
    $contact_form_email = get_field(‘contact_form_email’,'options’);
    if ($contact_form_email) {
      $email_to = $contact_form_email;
    }
    $email_subject = “Submission from Website”;