=== Country Email Router ===
Contributors: aksharmakwana6
Tags: elementor, email, email routing, contact form, country
Requires at least: 5.8
Tested up to: 7.1
Requires PHP: 7.4
Stable tag: 1.0.0
License: GPLv2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html

Routes Elementor Pro form submissions to different recipients based on the selected country.

== Description ==
Country Email Router adds a custom Elementor Pro form action that sends each form submission to a country-specific email address. Unmapped countries use the configured fallback address.

== Installation ==
1. Upload the `country-email-router-for-elementor` folder to `/wp-content/plugins/`.
2. Activate Country Email Router from the WordPress Plugins screen.
3. Edit an Elementor Pro form.
4. Remove Elementor's built-in Email action from Actions After Submit.
5. Add the Country Email Router action.
6. Set the country field ID, fallback email, subject, and country-to-email map.
7. Save the form and submit a test enquiry for a mapped and an unmapped country.

== Configuration ==
Routing defaults are stored in `config/settings.php` and `config/email-map.php`. Per-form values configured in Elementor override those defaults.

Add one route per line in the format:

    Belgium|sales@example.com
    United States|sales.usa@example.com

== Requirements ==
* WordPress 5.8 or later.
* PHP 7.4 or later.
* Elementor and Elementor Pro.

== Changelog ==
= 1.0.0 =
* Initial release.
