=== Email Sender Control === Contributors: mdasikresources Donate link: https://buymeacoffee.com/mdasik Tags: wp_mail, change from email & from name, custom from email, email tester, email logs Requires at least: 5.0 Tested up to: 6.8 Requires PHP: 8.2 Stable tag: 1.1.0 License: GPLv2 or later License URI: https://www.gnu.org/licenses/gpl-2.0.html Set custom WP sender name/email, send test emails, and search, sort, or view detailed logs to track, debug, and ensure reliable email delivery. == Description == This plugin allows you to: - Change the default "From Name" and "From Email" used by WordPress. - Send test emails to check email functionality. - Enable or disable email logging. - View, search, sort, and filter email logs (To, Subject, Date, Status). - View full email headers and message content in a popup. - Automatically delete logs older than X days (optional). - Optionally remove all data upon plugin uninstall. Perfect for site admins who want consistent branding on outgoing emails and tools to troubleshoot delivery issues. == Installation == 1. Upload the plugin ZIP file via **Plugins > Add New > Upload Plugin**, or install via the WordPress Plugin Directory. 2. Activate the plugin. 3. Navigate to **Email Sender** in the WordPress admin menu to configure settings. == Frequently Asked Questions == = Can I view and search the sent email logs? = Yes. If logging is enabled, you can view all sent and failed emails from the plugin's Email Logs tab. You can also search by recipient, subject, or status for quick filtering. = Can I sort the email logs? = Yes. You can sort the email logs by Date, Recipient, Subject, or Status with just one click on the column headers. = Can I view the full content of an email? = Yes. Click the “View” icon in the log to see the complete email headers and message body in a popup. = Will this affect contact form plugins like Contact Form 7 or WPForms? = Yes, but in a good way. This plugin updates the global `wp_mail()` headers so most form plugins will use your custom From Name and Email automatically. = Can I test if my WordPress email is working? = Yes. Use the built‑in Email Testing tool to send a test message and verify that your site can send emails. = Can I remove all plugin data on uninstall? = Yes. Enable the **"Delete data on uninstall"** option in the settings to remove all plugin data, including email logs. = Can I limit how long email logs are stored? = Yes. You can set the plugin to automatically delete logs older than a specified number of days. == Screenshots == 1. Email Sender Control settings page 2. Email logs table with search and sorting 3. Email logs table with popup message view == Changelog == = 1.1.0 = * Added: Email log search functionality. * Added: View full email headers & message in popup. * Added: Column sorting for Date, Recipient, Subject, and Status. * Improved: Email log UI for better tracking and debugging. = 1.0.1 = * Fixed: Text domain mismatch issue. * Fixed: Warnings flagged in PCP, including: - Added nonce verification in settings form. * Updated: Readme and plugin metadata for clarity. * Updated: Store Failed email logs & Error message. * Minor UI improvements and code optimizations. = 1.0.0 = * Initial release: - Customize From Name/Email - Email testing tool - Email logs - Auto-delete old logs - Plugin uninstall cleanup option == Upgrade Notice == = 1.1.0 = Recommended update. Adds powerful log search, sorting, and detailed message viewing for easier troubleshooting. = 1.0.1 = Fixes key issues (text domain, security warnings) and improves compatibility with WordPress plugin guidelines. == Credits == Developed by [Md Asik](https://mdasik.com)