=== MailMaster SMTP ===
Contributors: wpcraftengineer
Tags: smtp, email, email logs, mail, email testing
Requires at least: 5.9
Tested up to: 7.1
Requires PHP: 7.4
Stable tag: 0.1.3
License: GPLv2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html

Configure SMTP connections, send test emails and optionally log outgoing WordPress emails.

== Description ==
MailMaster SMTP configures WordPress email delivery through SMTP relay connections using WordPress's bundled PHPMailer. It supports multiple saved connections, a default connection, provider presets, test emails, and optional searchable email logs with CSV export and retention settings. Native API and OAuth transports are not included. Third-party providers may charge fees or impose sending limits.

= Connection management and local email diagnostics =
* Keep multiple SMTP configurations in one installation and select a default connection without re-entering its credentials.
* Use provider presets or configure a custom SMTP relay.
* Review optional local email logs, export CSV records and set retention limits. Message body logging is optional.
* Use the built-in test email and system information screens to troubleshoot delivery.

= Video Tutorial =

Watch the MailMaster SMTP setup and troubleshooting tutorial:

https://www.youtube.com/watch?v=4St9Qdr_Fdk

== Installation ==
1. Upload the plugin ZIP using Plugins > Add New > Upload Plugin.
2. Activate MailMaster SMTP.
3. Open MailMaster SMTP > Connections and configure your SMTP provider.
4. Send a test email. PHP Sodium is required for encrypted connection storage.

== External services ==
MailMaster SMTP uses external SMTP services only when an administrator configures a connection and sends a test email or WordPress sends email through that connection. No provider is contacted simply by installing or activating this plugin. The plugin does not send telemetry to its developer.

For each provider below, the SMTP server receives authentication credentials (where required), sender and recipient addresses, message headers, subject, body and any attachments included in the email. The provider processes this information to authenticate the connection, relay email and operate its delivery service; it may also retain delivery or security records under its own policies. The administrator chooses the provider and is responsible for reviewing its terms and privacy policy. Only the selected transport receives the email from this plugin.

= SendLayer =
Used as an SMTP relay to authenticate and deliver outgoing WordPress and test emails. The selected service receives the email and authentication data described above when used.

* Terms: https://sendlayer.com/terms-of-service/
* Privacy policy: https://sendlayer.com/privacy-policy/

= SMTP.com =
Used as an SMTP relay to authenticate and deliver outgoing WordPress and test emails. The selected service receives the email and authentication data described above when used.

* Terms: https://www.smtp.com/terms-of-service/
* Privacy policy: https://www.smtp.com/privacy-policy/

= Brevo =
Used as an SMTP relay to authenticate and deliver outgoing WordPress and test emails. The selected service receives the email and authentication data described above when used.

* Terms: https://www.brevo.com/legal/termsofuse/
* Privacy policy: https://www.brevo.com/legal/privacypolicy/

= Amazon SES =
Used as an SMTP relay to authenticate and deliver outgoing WordPress and test emails. The selected service receives the email and authentication data described above when used.

* Terms: https://aws.amazon.com/service-terms/
* Privacy policy: https://aws.amazon.com/privacy/

= Elastic Email =
Used as an SMTP relay to authenticate and deliver outgoing WordPress and test emails. The selected service receives the email and authentication data described above when used.

* Terms: https://elasticemail.com/terms-of-use
* Privacy policy: https://elasticemail.com/privacy-policy

= Gmail / Google Workspace =
Used as an SMTP relay to authenticate and deliver outgoing WordPress and test emails. The selected service receives the email and authentication data described above when used.

* Terms: https://policies.google.com/terms
* Privacy policy: https://policies.google.com/privacy

= Mailgun =
Used as an SMTP relay to authenticate and deliver outgoing WordPress and test emails. The selected service receives the email and authentication data described above when used.

* Terms: https://www.mailgun.com/legal/terms/
* Privacy policy: https://www.mailgun.com/legal/privacy-policy/

= Mailjet =
Used as an SMTP relay to authenticate and deliver outgoing WordPress and test emails. The selected service receives the email and authentication data described above when used.

* Terms: https://www.mailjet.com/legal/terms/
* Privacy policy: https://www.mailjet.com/legal/privacy-policy/

= MailerSend =
Used as an SMTP relay to authenticate and deliver outgoing WordPress and test emails. The selected service receives the email and authentication data described above when used.

* Terms: https://www.mailersend.com/legal/terms-of-service
* Privacy policy: https://www.mailersend.com/legal/privacy-policy

= Mandrill (Mailchimp Transactional) =
Used as an SMTP relay to authenticate and deliver outgoing WordPress and test emails. The selected service receives the email and authentication data described above when used.

* Terms: https://mailchimp.com/legal/terms/
* Privacy policy: https://mailchimp.com/legal/privacy/

= Microsoft Outlook / 365 =
Used as an SMTP relay to authenticate and deliver outgoing WordPress and test emails. The selected service receives the email and authentication data described above when used.

* Terms: https://www.microsoft.com/en-us/servicesagreement
* Privacy policy: https://privacy.microsoft.com/en-us/privacystatement

= Postmark =
Used as an SMTP relay to authenticate and deliver outgoing WordPress and test emails. The selected service receives the email and authentication data described above when used.

* Terms: https://postmarkapp.com/terms-of-service
* Privacy policy: https://postmarkapp.com/privacy-policy

= Resend =
Used as an SMTP relay to authenticate and deliver outgoing WordPress and test emails. The selected service receives the email and authentication data described above when used.

* Terms: https://resend.com/legal/terms-of-service
* Privacy policy: https://resend.com/legal/privacy-policy

= SendGrid =
Used as an SMTP relay to authenticate and deliver outgoing WordPress and test emails. The selected service receives the email and authentication data described above when used.

* Terms: https://www.twilio.com/en-us/legal/tos
* Privacy policy: https://www.twilio.com/en-us/legal/privacy

= SMTP2GO =
Used as an SMTP relay to authenticate and deliver outgoing WordPress and test emails. The selected service receives the email and authentication data described above when used.

* Terms: https://www.smtp2go.com/terms-of-service/
* Privacy policy: https://www.smtp2go.com/privacy-policy/

= SparkPost (Bird) =
Used as an SMTP relay to authenticate and deliver outgoing WordPress and test emails. The selected service receives the email and authentication data described above when used.

* Terms: https://bird.com/legal/terms-and-conditions
* Privacy policy: https://bird.com/legal/privacy

= Zoho Mail =
Used as an SMTP relay to authenticate and deliver outgoing WordPress and test emails. The selected service receives the email and authentication data described above when used.

* Terms: https://www.zoho.com/terms.html
* Privacy policy: https://www.zoho.com/privacy.html

= Custom SMTP and PHP Mail =
Custom SMTP sends the same email and authentication data to the administrator-specified server. Consult that server operator's terms and privacy policy. PHP Mail uses the hosting environment's configured mail transport; the hosting provider may process email contents and delivery metadata. No fixed external provider is selected by these two options.

== Privacy ==
Email logging is disabled by default for new installations. If enabled, logs can contain email addresses, subjects, attachment metadata and delivery errors. Optional message body logging can store sensitive information and custom headers. Logs are stored locally in the WordPress database. Administrators can delete logs and configure retention. Credentials are encrypted using PHP Sodium and WordPress salts; changing salts may require entering credentials again. SMTP acceptance is not proof of inbox delivery.

== Changelog ==
= 0.1.2 =
* Documented all 17 external SMTP provider presets, data transmission, terms and privacy policies.
* Clarified connection management and local email diagnostics.

= 0.1.1 =
* Hardened output escaping, connection validation, credential handling and email logging.
* Improved CSV export safety and log deletion.
* Updated plugin documentation.

= 0.1.0 =
* Initial release.
