Have you tried without the ajax? Is that where you’re actually sending the mail? Try just putting the wp_mail function right under headers and see if you get the mail.
Also i agree with theDeadmedic. It could be spam. Check the google spam folder and if its’ not there, try sending to an email on your own domain (as long as it’s not using googles servers)
Also, I always add content-type to my header to help reduce the spam flag. It may help you:
$headers = array('Content-Type: text/html; charset=UTF-8');
$headers[] = 'From: CMCENTERS <[email protected]>';
Related Posts:
- wp_mail 200 response but no mail sent
- wp_mail script with jQuery post
- How do I call wp_mail from HTML?
- WordPress ajax success response
- PHP 8, AJAX mail form to function.php doesn’t work
- contact form ajax empty response error message
- Wp mail does not work when Ajaxed to
- wp_mail doesn’t work when logged in?
- Send email via ajax
- Contact form – ajax, wp_mail
- need a confirmation text to appear on email submission
- Add Server Side validation in Ajax mail form
- How to send automatic response after form submission without plugin
- Sending email through Ajax without page refresh hangs on admin_ajax.php
- Adding user using admin ajax by a user with custom role
- How to send the checkbox value to email
- WordPress Ajax JSON success return no being recognized
- Run PHPMailer function after ajax function completes that adds row to custom table
- Access-Control-Allow-Origin error sending a jQuery Post to Google API’s
- Show spinner GIF during an $http request in AngularJS?
- ASP.NET MVC controller actions that return JSON or partial html
- How to check if I am in admin-ajax.php?
- How to set SMTP programmatically
- Ajax in a settings page (update_option is undefined)
- wp_mail and BCC headers
- admin-ajax.php vs Custom Page Template for Ajax Requests
- Saving (Updating) Post / Page Edits With AJAX
- Include HTML template file in wp_mail
- Email sent from WordPress has HTML tags
- Reset Password – change from name and email address
- Is there a hook that fires before an ajax call?
- AJAX request from Chrome Extension to WordPress Website
- How to correctly load wordpress in a non WP script for AJAX request
- Minimal WordPress load for only `get_option` to work (because ajax…)
- wp_mail not recognizing cc and bcc headers
- Why is admin ajax reloading my page
- Admin Ajax always return 0 on form submit
- Why this plugin doesn’t work with media upload page?
- CPU usage: AJAX and Heartbeat API on admin pages
- Ajax call in wordpress not working for subscriber user in front site
- Solve cors problem using rest api or ajax
- Can part of my WordPress website be headless?
- Why does WordPress Heartbeat login not refresh the nonces?
- Why would admin-ajax.php redirect to the home page for logged out users?
- Admin Ajax and HTML5 Formdata
- Implementing an AJAX POST API call in wordpress
- Placement of add_action() for ajax callback?
- Send email button in custom post type backend
- Identical wp_rest nonce returned from rest_api
- Ajax WordPress Login needs to be stayed in current page Url without redirecting
- wp_handle_upload returns empty error array
- Loading comments in ajax – comment-reply function missing $args
- Woocommerce update product price via AJAX
- How do I query posts by a sub value with the API?
- Enqueue script in plugin is not working
- Attach time/date stamp on add_post_meta
- Uncaught ReferenceError: the_ajax_script is not defined . How is this not defined?
- infinite scroll not working when logged out
- I can’t get a return value from Ajax
- WordPress AJAX return 0 – My case
- Help with filter for wp_notify_moderator()
- Creating an auto result search bar
- update_option is not saving an array, but saving the string ‘Array’
- Ajax call in wordpress not working for subscriber user
- Ajax call in WordPress – unable to display the data on the page
- How to reuse get_template_part() containing a simple loop to work with AJAX correctly?
- What WP-API authentication method should I use to interact with anonymous / not-logged visitors?
- How to call ajax in plugin file
- Tabbed feeds with ajax vs. without on homepage [closed]
- Using wp_mail to send email?
- javascript onClick update user_meta from jquery.ajax
- How to ignore WP_ERROR caused by “get_the_excerpt” method in an AJAX call?
- WP_Query is not received in Ajax
- Updated : how to make email optional while user registration using default wordpress form
- How do I mitigate replay attacks when talking about actions that shouldn’t happen twice?
- Updating Jquery object with newly created elements after AJAX call
- Not getting ajax success response on insert/update row to database
- Ajax call from Plugin using Class
- enqueue style using admin-ajax.php
- How to safely pass post_id and user_id via AJAX to the backend (prevent user from changing it via JS)?
- admin-ajax.php returning 0
- Can’t get next post info with ajax
- How to inject data content from external json into a modal, using UIkit?
- Update user meta via ajax from frontend, saving issue
- How to get the admin page slug using wp_loaded hook?
- Edit user meta on front-end via AJAX
- How to paginate Ajax result
- Cannot access class properties from ajax call in wpordrpess
- why is my main.js not loading?
- Can Ajax Action [add_action(‘wp_ajax_{action_name}’, ‘{action_name}’] be hooked into wp hook
- Get Page Type (Category/Tag) Using AJAX
- Ajax Form data is not posted back to the get_results()
- Remove dashboard access but allow ajax file upload
- fail to load /wp-admin/admin-ajax.php locally
- BBPress AJAX problem
- WordPress & Ajax
- WordPress wp_localize_script nonce and ajax URL
- AJAX request blocked by CORS policy
- Ajax call to a function in another module returns a 400 (Bad Request) error
- Send and receive emails with wp_mail() for WP User (like Mailserver)