It’s also taken from the example, like I sent you earlier but I’d adjusted it to your custom post.
Do you have any plugins blocking emails?
I know the code used works as it’s the same as I use on my sites.
What if you switch to a default theme and add the code, does it work?
Can you hardcode the values in this line: $headers = 'From: ' . $name . ' <' . $email . '>' . "\r\n";
I have a feeling you can’t access custom fields at this stage, I think you have to access the info via the field key
Welcome to the Advanced Custom Fields community forum.
Browse through ideas, snippets of code, questions and answers between fellow ACF users