=== Mailly ===
Contributors: cosmicinfosoftware
Tags: smtp, email, gmail, tracking, log
Requires at least: 5.0
Tested up to: 7.0
Requires PHP: 7.4
Stable tag: 1.0.0
License: GPLv2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html

Professional SMTP plugin supporting 15+ providers. Features include Email Tracking, Smart Routing, Failover, Detailed Logs, and Weekly Digest.

== Description ==

Stop your WordPress emails from going to spam. **Mailly** is a professional **WordPress SMTP plugin** designed to ensure 100% reliable email delivery. By replacing the default PHP mail with secure API integrations or standard SMTP, Mailly connects your site to top-tier services like **Gmail, Outlook, Amazon SES, and SendGrid**. Whether you're running a small blog or a high-traffic WooCommerce store, Mailly offers enterprise-level features to optimize your transactional emails. Benefit from real-time **Email Tracking** (Opens/Clicks), **Smart Routing** for multiple mailers, **Automatic Failover (Backup Connections)**, and a **Detailed Email Log** to keep your business communications running perfectly.

== Features ==

⭐ **Comprehensive Email Log** – Keep a complete record of every email sent, including subject, recipient, status, and precise timestamps for total audit control.
⭐ **15+ Native API Mailers** – Connect securely to Gmail, Outlook, Amazon SES, Mailgun, SendGrid, Brevo, and more using native high-performance APIs.
⭐ **Intelligent Smart Routing** – Create conditional rules to route specific emails (like WooCommerce orders) through different providers based on subject or recipient.
⭐ **Automated Failover System** – Ensure zero downtime by automatically switching to a secondary backup connection if your primary mailer fails.
⭐ **Real-time Open & Click Tracking** – Gain valuable insights with instant tracking of email opens and link clicks directly within your WordPress dashboard.
⭐ **Bulk & Individual Resend** – Effortlessly resend failed emails or duplicate successful ones with a single click, individually or in bulk from the log.
⭐ **Asynchronous Dispatching** – Boost site performance by offloading email sending to a background queue, preventing slow page loads for users.
⭐ **Weekly Performance Digest** – Receive a beautiful, automated summary of your email delivery health, success rates, and tracking stats every week.
⭐ **Granular Email Controls** – Take full control by suppressing specific emails or blocking certain subjects and recipients to avoid unwanted communications.
⭐ **Twilio SMS Alerts** – Stay informed even when away from your desk with instant SMS notifications via Twilio for critical delivery failures.
⭐ **Robust Webhook Integration** – Automatically synchronize delivery statuses and tracking events via provider webhooks for 100% data accuracy.
⭐ **Secure OAuth2 Authentication** – Use the latest security standards to connect with Google, Microsoft, and Zoho without storing sensitive passwords.
⭐ **Developer-First Architecture** – Highly extendable with a wide array of hooks and filters, allowing for deep custom integrations and behavior modification.
⭐ **Interactive Dashboard Widget** – Get an at-a-glance overview of your recent email performance and delivery success directly on your WordPress home screen.
⭐ **24/7 Dedicated Support** – Our expert technical team is always available to help you with configuration, mailer setup, or troubleshooting.
⭐ **One-Click Configuration** – Get up and running in seconds with an intuitive interface designed for both beginners and experts.
⭐ **Custom Header Support** – Easily add custom X-Headers to your emails for better organization and advanced server-side filtering.
⭐ **Translation & RTL Ready** – Fully compatible with all languages and RTL layouts, perfect for global businesses and websites.
⭐ **Optimized for Speed** – Lightweight code architecture that handles high email volumes without slowing down your site or server.
⭐ **GPL Licensed & Secure** – 100% open-source and built with the latest security standards to keep your communication safe.

### Supported Mailers & Providers
We support all major providers via native API integrations for maximum speed and security:
*   **Google / Gmail** (Secure OAuth2)
*   **Microsoft Outlook / Office 365** (Secure OAuth2)
*   **Zoho Mail** (Secure OAuth2)
*   **Amazon SES**
*   **Mailgun**
*   **SendGrid**
*   **Brevo** (formerly Sendinblue)
*   **Postmark**
*   **SparkPost**
*   **Resend**
*   **MailerSend**
*   **Mailjet**
*   **Elastic Email**
*   **SendLayer**
*   **SMTP.com** / **SMTP2GO**
*   **Generic SMTP** (For any other provider)

== External services ==

This plugin facilitates the sending of emails through various third-party email delivery services (Mailers). When you configure and enable a specific mailer, the plugin will connect to that service's API to deliver your outgoing WordPress emails.

The following services may be used depending on your configuration:

*   **Google (Gmail/Google Workspace)**: Used to send emails via the Gmail API. It sends email content, recipients, and subjects. [Terms](https://developers.google.com/terms), [Privacy](https://policies.google.com/privacy).
*   **Microsoft (Outlook/Office 365)**: Used to send emails via the Microsoft Graph API. It sends email content, recipients, and subjects. [Terms](https://www.microsoft.com/en-us/legal/terms-of-use), [Privacy](https://privacy.microsoft.com/en-us/privacystatement).
*   **Amazon SES**: Used to send emails via the Amazon SES API. It sends email content, recipients, and subjects. [Terms](https://aws.amazon.com/service-terms/), [Privacy](https://aws.amazon.com/privacy/).
*   **Mailgun**: Used to send emails and receive delivery status webhooks. It sends email content, recipients, and subjects. [Terms](https://www.mailgun.com/terms/), [Privacy](https://www.mailgun.com/privacy-policy/).
*   **SendGrid**: Used to send emails and receive delivery status webhooks. It sends email content, recipients, and subjects. [Terms](https://www.twilio.com/legal/tos), [Privacy](https://www.twilio.com/legal/privacy).
*   **Brevo (formerly Sendinblue)**: Used to send emails and receive delivery status webhooks. It sends email content, recipients, and subjects. [Terms](https://www.brevo.com/legal/termsofuse/), [Privacy](https://www.brevo.com/legal/privacypolicy/).
*   **Postmark**: Used to send emails and receive delivery status webhooks. It sends email content, recipients, and subjects. [Terms](https://postmarkapp.com/terms-of-service), [Privacy](https://postmarkapp.com/privacy-policy).
*   **Resend**: Used to send emails and receive delivery status webhooks. It sends email content, recipients, and subjects. [Terms](https://resend.com/legal/terms-of-service), [Privacy](https://resend.com/legal/privacy-policy).
*   **Zoho Mail**: Used to send emails via the Zoho API. It sends email content, recipients, and subjects. [Terms](https://www.zoho.com/terms.html), [Privacy](https://www.zoho.com/privacy.html).
*   **Mandrill**: Used to send emails and receive delivery status webhooks. It sends email content, recipients, and subjects. [Terms](https://mailchimp.com/legal/terms/), [Privacy](https://mailchimp.com/legal/privacy/).
*   **Meta (WhatsApp Business Platform)**: Used to send WhatsApp alerts and manage templates. It sends alert content, recipient phone numbers, and template names. [Terms](https://www.facebook.com/legal/terms), [Privacy](https://www.facebook.com/privacy/policy).
*   **MailerSend**: Used to send emails and receive delivery status webhooks. It sends email content, recipients, and subjects. [Terms](https://www.mailersend.com/legal/terms-of-use), [Privacy](https://www.mailersend.com/legal/privacy-policy).
*   **Mailjet**: Used to send emails and receive delivery status webhooks. It sends email content, recipients, and subjects. [Terms](https://www.mailjet.com/legal/terms-and-conditions/), [Privacy](https://www.mailjet.com/legal/privacy-policy/).
*   **SparkPost**: Used to send emails and receive delivery status webhooks. It sends email content, recipients, and subjects. [Terms](https://media.sparkpost.com/uploads/2016/09/SparkPost-Terms-of-Use-v.1-November-2014-1.pdf), [Privacy](https://support.sparkpost.com/docs/user-guide/data-privacy).
*   **Elastic Email**: Used to send emails via the Elastic Email API. It sends email content, recipients, and subjects. [Terms](https://elasticemail.com/resources/usage-policies/terms-of-use/), [Privacy](https://elasticemail.com/resources/usage-policies/privacy-policy/).
*   **SendLayer**: Used to send emails and receive delivery status webhooks. It sends email content, recipients, and subjects. [Terms](https://sendlayer.com/terms-of-service/), [Privacy](https://sendlayer.com/privacy-policy/).
*   **SMTP.com**: Used to send emails and receive delivery status webhooks. It sends email content, recipients, and subjects. [Terms](https://www.smtp.com/policies/terms-and-conditions/), [Privacy](https://www.smtp.com/policies/privacy-policy/).
*   **SMTP2GO**: Used to send emails and receive delivery status webhooks. It sends email content, recipients, and subjects. [Terms](https://www.smtp2go.com/terms/), [Privacy](https://www.smtp2go.com/privacy/).
*   **Twilio**: Used to send SMS alerts if configured. It sends alert messages and phone numbers. [Terms](https://www.twilio.com/legal/tos), [Privacy](https://www.twilio.com/legal/privacy).

== Installation ==

1. Upload the `mailly` folder to the `/wp-content/plugins/` directory.
2. Activate the plugin through the 'Plugins' menu in WordPress.
3. Go to **Mailly** in your admin menu to configure your primary connection.
4. (Optional) Set up **Backup Connections** or **Smart Routing** in the respective tabs.

== Frequently Asked Questions ==

= Do I need an account with an email provider? =
Yes, you will need an account (like Mailgun, SendGrid, or a Google Workspace account) to use this plugin effectively.

= Can I track clicks and opens? =
Absolutely. Enable "Tracking" in the Settings tab to start seeing analytics in your Email Log.

= Will this slow down my site? =
No. By enabling **Asynchronous Dispatch**, emails are processed in the background, making your page loads faster.

== Screenshots ==

1. **Email Delivery with Smart Routing:** Core configuration with sender settings, delivery service selection from 20+ providers, and secure sender options.
2. **Advanced Email Logs & Tracking:** Complete email logging with message content storage, attachment archiving, engagement tracking (opens & clicks), and auto-cleanup.
3. **Complete Email Control, All in One Place:** System alerts with instant notifications, email alerts, Slack, Discord, Microsoft Teams integrations, SMS via Twilio, and WhatsApp Business alerts.
4. **Manage All Mailers in One Place:** Secondary accounts management with multiple sender profiles, reliable failover, and centralized mailer configuration.
5. **Smart Routing. Reliable Delivery. Always:** Conditional routing logic with advanced conditions, failover support, and dynamic email routing based on custom rules.
6. **Complete Notification Management:** Event-based notifications, administrator security alerts, account & access alerts, and system & maintenance updates.
7. **Advanced Control. Smarter Emails:** Advanced settings with performance & delivery optimization, security & protection, clean dashboard controls, and data management tools.

== Changelog ==

= 1.0.0 =
* Initial release.
* Added 15+ Mailer Providers.
* Integrated Email Tracking (Open/Click).
* Added Smart Routing and Backup Connections.
* Added Weekly Performance Digest.
* Added Detailed Logging and Bulk Resend.


== Upgrade Notice ==

= 1.0.0 =
Initial public release of Mailly.