Emailit API WordPress Plugin by Orrala Systems
π WordPress plugin that replaces wp_mail() to send emails via EmailIT API
by Orrala Systems Β· github.com/orralasystems/emailit-mailer Β· website
Install
No release zip yet. The repository archive installs, but the folder name will carry the branch suffix and updates will not flow:
wp plugin install https://github.com/orralasystems/emailit-mailer/archive/refs/heads/master.zipπ§ Emailit API WordPress Plugin
Expert-level WordPress plugin that replaces wp_mail() to send emails through the EmailIT API
Developed with β€οΈ by Orrala Systems
β¨ Features
- π Automatic wp_mail() replacement - All WordPress emails are sent through EmailIT
- π Bearer authentication - Secure connection using API Key
- βοΈ Complete settings panel - Easy configuration from WordPress admin
- π Logging system - Record of the last 100+ emails with status
- π§ͺ Test email - Verify configuration with one click
- π On/off toggle - Enable/disable without deactivating the plugin
- π Attachment support - Send attachments without issues
- π‘οΈ Secure - Nonces, sanitization and validation throughout the code
π Requirements
| Requirement | Version |
|---|---|
| WordPress | 5.0+ |
| PHP | 7.4+ |
| EmailIT Account | Active with API Key |
π Installation
Manual Method
- Download or clone this repository
- Copy the
emailit-mailerfolder to/wp-content/plugins/ - Activate the plugin from Plugins β Installed Plugins
- Configure at Settings β EmailIT Mailer
From GitHub
cd /path/to/wordpress/wp-content/plugins/
git clone https://github.com/OrralaSystems/emailit-mailer.git
βοΈ Configuration
1. Get API Key
- Log in to EmailIT
- Go to the credentials panel
- Create a new "API" type credential
- Copy the generated API Key
2. Configure the Plugin
- Go to Settings β EmailIT Mailer
- Enable the plugin with the "Plugin Status" toggle
- Enter your API Key
- Configure the sender email and name
- Optionally configure Reply-To
- Save changes
3. Verify Configuration
- In the "Send Test Email" section
- Enter a destination email
- Click "Send Test Email"
- Verify the email arrives
π Plugin Structure
emailit-mailer/
βββ π emailit-mailer.php # Main file
βββ π includes/
β βββ class-emailit-settings.php # Settings management
β βββ class-emailit-api.php # API client
β βββ class-emailit-logger.php # Logging system
β βββ class-emailit-mailer.php # wp_mail replacement
β βββ class-emailit-admin.php # Admin pages
βββ π assets/
β βββ π css/
β β βββ admin.css # Admin styles
β βββ π js/
β βββ admin.js # Admin JavaScript
βββ π uninstall.php # Cleanup on uninstall
βββ π readme.txt # WordPress documentation
π§ Configuration Options
| Option | Description |
|---|---|
| Enable Plugin | Toggle to activate/deactivate sending via EmailIT |
| API Key | EmailIT authentication key |
| From Email | Address from which emails are sent |
| From Name | Name that appears as sender |
| Force Sender | Ignore sender from other plugins |
| Reply-To | Address for replies |
| Enable Logs | Activate email logging |
| Retention Days | How long logs are kept |
| Max Entries | Limit of logs to store |
π Logs Panel
The plugin includes a logs panel accessible from Settings β EmailIT Logs where you can:
- β View recently sent emails
- β Identify failed sends
- π Filter by status (sent/failed)
- π Search by email or subject
- ποΈ Manually clear logs
π Security
The plugin implements WordPress security best practices:
- Sanitization: All inputs are sanitized with WordPress functions
- Escaping: All outputs are properly escaped
- Nonces: Verification on forms and AJAX requests
- Capabilities: Only users with
manage_optionscan configure - Prepared Statements: Use of
$wpdb->prepare()on all queries
π Changelog
1.2.0
- π Plugin fully localized to English (US)
- π Improved code documentation
- π§ Various stability improvements
1.1.0
- β Added toggle to enable/disable plugin
- π When disabled, WordPress uses its native method
- π¨ UI improvements
1.0.0
- π Initial version
- π§ EmailIT API integration
- βοΈ Complete settings panel
- π Logging system
- π§ͺ Test email
π€ Contributing
Contributions are welcome. Please:
- Fork the repository
- Create a branch for your feature (
git checkout -b feature/AmazingFeature) - Commit your changes (
git commit -m 'Add some AmazingFeature') - Push to the branch (
git push origin feature/AmazingFeature) - Open a Pull Request
π License
This project is under the GPL-2.0 License. See the LICENSE file for more details.
π Links
- EmailIT - Email sending service
- API Documentation - API documentation
- Orrala Systems - Plugin developers
Emailit API WordPress Plugin
Β© 2025 Orrala Systems. All rights reserved.