You need to add newlines to your array like:
$headers = array('Content-Type: text/html; charset=UTF-8\r\n', "From: $name <$email>\r\n");
Related Posts:
- Can I use the same nonce for multiple requests on the same page?
- How to check if new posts have been published since page load?
- Can i check if user is doing any ajax request?
- How to use wp_localize_script in a WordPress page other than functions.php?
- Real time Duplicate title check
- Ajax template: how to handle head section
- Load custom field value into div with AJAX
- Accessing a random image via ajax
- Update WordPress Custom Field with AJAX on cached page
- Making a follow button, Ajax not talking to php
- Is the regular ajax request method safe or I should use admin-ajax.php?
- AJAX in WordPress, sending coords data to MySQL and show after into map
- Ajax form submit within a Post Metabox
- Returning a value from a PHP page
- WordPress File handle – fopen, fwrite not working with $.ajax or $.post Jquery
- Stumped – Ajax Response Returns 0
- Ajax $wpdb not returning table data
- doing an ajax request always outputs 0
- How to run JS, PHP and etc. inside WP post?
- Trying to implement Ajax comments in WordPress, getting WP error
- Can’t search posts using WP_QUERY inside AJAX Function
- Woocommerce add to cart quantity buttons with AJAX
- Why is $_REQUEST an empty array in admin-ajax.php?
- AJAX request status 200 but no actual “response”
- Ajax – Call to undefined function get_option()
- Ajax load more posts with multiple tax query
- Ajax call not working
- WordPress Sending data to Ajax with select option
- PHP 8, AJAX mail form to function.php doesn’t work
- How to get original custom taxonomy slug after the slug has been rewritten?
- Save Search System
- populate form fields in a loop with ajax
- dynamic dependent select dropdown
- Are nonces in WP REST API optional by default?
- How to pass Select value from Javascript to PHP to generate select option on change
- how to make custom ajax handler?
- Plugins not working on AJAX requests
- WordPress Ajax Call inserting data but success response false
- Loading php file with AJAX in WordPress frontend
- Ajax contact form return 0
- AJAX – Returning Two JSON Objects with One PHP Function
- Get the URL of the page from which an ajax request has been launched within ajax callback
- unable to use ‘new WP_Query’ in AJAX call
- is_user_logged_in() not working in AJAX validation call
- Unset session variable on page reload / setup but exclude AJAX
- Add Ajax Hooks and Call from Custom Template PHP
- Making an AJAX call to refresh a table
- WordPress Ajax Always returning 0
- Using data sent via AJAX in multiple functions on a WP plugin
- Short code template + ajax
- Can I make get_users() query global?
- My jQuery Ajax form submit is still refreshing page?
- Calling PHP Scripts in Ajax that are in PHP Snippets
- Submitting a form, using Ajax, to run a SQL Select query based on user input from the form
- Simple jQuery AJAX Request fails to run PHP Script
- Allow user to Upload image and manipulate it on the frontend
- Execute Jquery when a specific page in my plugin is loading
- calling admin-ajax.php from admin-ajax.php
- AJAX function not working [closed]
- what does $options = get_option(‘test_theme’); do?
- Validating an email input from form field before submit using JQuery, AJAX, and PHP
- WordPress Custom Add To Cart Button with AJAX
- WordPress cascading dropdown selection search based on Parent Page & Child Page
- Ajax on the Administration Side of plugin – wp_localize_script – how to pass value from JQuery to PHP function in class?
- jquery & ajax getting data from php in wordpress . admin-ajax.php returns 400
- Settings API form – submit with AJAX
- My Custom Post Type AJAX Query is Returning no posts – why?
- register_block_type is not working properly
- Submit remote form to wordpress REST API and save data to custom post type
- WooCommerce REST API AJAX Auth – 401 response
- AJAX numerical pagination problem in TwentyFifteen-child theme
- How to reload a php script, using AJAX and jQuery
- Filtering custom posts by using checkboxes for taxonomy in an ajax loop always gives server 500 error
- Why my Ajax events are no longer detected after dynamic change of shortcode content
- Contactform7: display results from CURL
- Top Authors list by highest post views with Ajax pagination
- Offset with ajax load more posts duplicates
- ajax polling with admin-ajax.php
- wordpress more than one ajax request at the same time issue
- Woocommerce variable products are being added to the card on the homepage (ajax)
- A javascript function that simply runs a php function on the plugin
- Ajax not updating to database
- WordPress 404 when using AJAX to call php function
- how use php query in AJAX jquery
- Ajax Load more CPT via shortcode
- Submitting my form to the database and then redirecting to payment site
- MySQL query in WordPress with AJAX
- wp_delete_comment is doing nothing
- Pass the updated value of aid from form using ajax
- Is custom behaviour possible when asynchronously uploading?
- Execute PHP code in Javascript onclick
- best way to communicate between php and jquery/javascript
- Fatal error: Uncaught Error: Call to undefined function wp_nav_menu()
- Data inserted in database, but ajax calls error function
- AJAX: WordPress filters inside $html do not work as intended
- Why not showing all post by default in my jquery filter
- Correct way to perform a GET to another PHP file hosted on wordpress
- How to display inputted data in Ajax without button or click event
- Save Edit button then disabled readonly metabox
- getJSON response to PHP