Many E-Mail-Hosters changed their rules to prevent spam. Often times, E-Mails that have one domain name in their “from”-Tag and come from a server with a different domain are rejected. So my guess is, maybe the emails are still sent, but not received.
You can check this by changing this line:
$headers="From: ".$senderEmail.' <'.$senderName.'>' . "\r\n";
to something like this:
$my_domain = $_SERVER['HTTP_HOST'];
$headers="From: orders@".$my_domain."\r\n".'Reply-To: '.$senderEmail."\r\n";
and check if the e-mails are sent and received correctly now.
(By setting the Reply-To Header, the correct Address is inserted when clicking on “Reply” in the Mail Client.)
Related Posts:
- wp_mail and BCC headers
- Pluggable function and activation check?
- Claim Listing functionality – how to send email to users when their claim has been approved or denied
- wp_mail() is not working in localhost
- Send emails with wp_mail() using SMTP configured in plugin
- wp_mail() is not working on server
- wp_mail attachment not working
- Why wp_mail() function isn’t sending any emails and displaying ‘0’ in Chrome ‘Network’ response
- Executing my function once on a specific time
- How to send mail to subscribers using wp_mail
- Unable to override pluggable function wp_mail
- wp-mail attachment is not sent for no reason?
- Sending HTML email containing custom fields to site users from WordPress
- trigger email when post is published by someone a user follows
- wp_mail – using a custom field value
- How to properly use wp_mail() in my own plugin?
- How can I send the mail once?
- wp_mail function not working in WordPress Plugin Boilerplate
- Generate and send ICS file through WordPress
- plugins_loaded action is not working properly
- What security concerns should I have when setting FS_METHOD to “direct” in wp-config?
- Uncaught Error: Call to undefined function wp_generate_attachment_metadata() @ wp-cron
- force enqueue script to be first in order of prominence
- Using require_once in a Plugin?
- How to call “page specific menu items” in template [closed]
- Hook for image edit popup
- wp_enqueue_style in Plugin [duplicate]
- Master menu item for multiple plugins?
- Is it possible to add an action to the currently running action?
- Google Maps and Yandex Maps doesn’t work correctly
- How do I get slug of all active plugins programmatically?
- Only execute jQuery function(on document ready) on the page has shortcode from plugin [duplicate]
- unzip a folder on specific location and delete the zip file
- Check if User exists in WordPress Multisite
- WordPress author details plugin/widget
- Duplicate posts when posting nulls in records in phpMyAdmin [closed]
- Plugin version is not showing up in wordpress.org plugin directory
- Saving changes in wp_editor
- Removing customise fields during plugin uninstallation
- plugin class inheritance. cannot change variable
- Modifying the comments section through a plugin regardless of theme
- How to get specific setting by settings_fields()?
- Search for categories
- Best way to initiate a class in a WP plugin?
- Why this function not working for install database on plugin activation
- The Hook registration_errors was not called
- What happens if I don’t update my plugins?
- Hide certain widgets from specific user roles in admin
- Delay JavaScript files from loading
- remove_action not removing add_action from constructor
- How to display checked posts on another page over AJAX? (like comparasion style)
- Custom widget doesn’t save values from dropdown box
- Is there a way to make the main page only display a brief description of the full article?
- jQuery Click event is not fired at all
- Widget for specific category
- Generate Own Custom CSS Button with icon
- Unable to install plugins
- Is there any way to inject text onto pages?
- WordPress as heavily personalized content management portal, and somewhat like dropbox [closed]
- “switchEditors is not defined” with wp_editor() in jQuery UI tabs
- Plugin that lets visitors Like a post (not facebook) and stores likes in custom meta?
- How to get Recent Post From Each Category with Thumbnail?
- Error Using Audio plugin
- Multisite Change from domain.com to sub.newdomain.com
- “Welcome to WordPress” Plugin Required Error
- How to list datas from database in a topic?
- Downloading a file
- Profiling the initial PHP file, anyone, that get like 10 seconds to load
- How use wp_insert_post and add og:custom tags?
- Remove Keywords From Webpage But Still Use for SEO
- Troubleshooting Admin_Notice
- Images are broken in Wysiwyg Editor – ACF backend
- WordPress database problem wp_posts, primary key
- Auto trigger of popup
- My WordPress activation hook isn’t working
- How to allow URL with filename & extension in wordpress?
- Plugin will not write background color to site
- WordPress Plugin PHP Not Calling Function
- how to show the tables of my plugin in the export tab of WordPress?
- load plugin in code snippet
- Do_shortcode before send email content
- When the user entered an unauthorized url redirect to login page
- Get plugin to background of page
- how to create database to use it in wordpress website?
- WordPress Feedback popup with date saved into table
- Plugin option for input box validation
- Include paths and functions for external scripts
- Postal address auto-complete on profile page
- Remove the ‘Press This’ Tool
- WordPress Related Plugin – Adding an image
- which is this plugin ? [closed]
- How to write a specific url for only single page in wordpress?
- WordPress Plugin to Show a Website in Different Language? [closed]
- Strict Standards: Non-static method in sidebar generator
- Check if plugin is being disabled
- How often should I execute add_filter and function declaration in Code Snippets?
- How to change all the urls of the WordPress site?
- Running a function using Crown WordPress on one day a week, for example, Mondays of every week
- Ad Management Plug that can be used on a membership site
- How do I remove the filter from the orders and add custom status in Dokan?