=== SendGrail SMTP - Secure Email Delivery, Routing & Email Log for Gmail, Outlook, Office 365 & Custom SMTP ===

Contributors: brighterfox, wpperformly
Tags: smtp, email, email delivery, email log, smtp routing
Requires at least: 6.0
Tested up to: 6.9
Stable tag: 1.0.0
Requires PHP: 8.0
License: GPLv3 or later
License URI: https://www.gnu.org/licenses/gpl-3.0.html

SendGrail routes your WordPress emails through reliable SMTP providers with smart routing, real-time delivery tracking, and automatic failover, so every email lands in the inbox.

== Description ==

WordPress emails landing in the spam folder, or worse, not delivering at all.

That’s the common scenario among WordPress site owners.

By default, WordPress uses the standard PHP mail function to send emails, which is notoriously unreliable and frequently blocked by major email clients.

SendGrail SMTP solves this problem permanently and without charging you a penny. YES! SendGrail is 100% free with no paid option at all.

SendGrail completely reconfigures how your WordPress site sends out emails. By routing your outgoing messages through dedicated, trusted SMTP (Simple Mail Transfer Protocol) providers, we ensure that your password resets, WooCommerce receipts, and contact form submissions reach your users' inboxes every single time.

Designed for both beginners and advanced users, SendGrail combines a streamlined, one-click setup with powerful enterprise-grade tools like automatic failover routing and real-time delivery logs.

=== Core Features ===

- <strong>Multiple SMTP Providers:</strong> Connect seamlessly with the most popular and reliable email delivery services including SendGrid, Mailgun, Amazon SES, Postmark, Google (Gmail/Workspace), Microsoft (Outlook/Office 365), and any standard custom SMTP server.
- <strong>Automatic Fallback Routing:</strong> Never lose an important email. If your primary SMTP provider experiences downtime or fails to send a message, SendGrail automatically attempts to resend using a secondary backup provider.
- <strong>Detailed Email Logging:</strong> Keep a complete record of every email sent from your website with delivery status details and timestamps.
- <strong>Secure Credentials:</strong> Define credentials directly in wp-config.php for security.
- <strong>One-Click Setup:</strong> Guided setup wizard for quick configuration.
- <strong>Advanced Debug Mode:</strong> View detailed logs to troubleshoot connection issues.
- <strong>Multisite Support:</strong> Manage settings centrally or per sub-site.

=== SMTP Mailers ===

SendGrail SMTP has a bunch of popular mailers to make sure your emails are delivered correctly.

1. Google Workspace
2. Microsoft Outlook
3. Brevo (formerly Sendinblue)
4. Mailgun
5. SendGrid
6. Amazon SES
7. Postmark
8. Mailjet SMTP
9. SendGrid SMTP
10. Netcore
11. Elastic Email
12. SendLayer
13. SparkPost
14. Resend
15. Zoho Mail
16. SMTP2Go
17. Mandgrill
18. Custom (Add your own)

== External Services ==

This plugin connects to third-party SMTP servers to deliver emails on your behalf. The connection only occurs when you configure an SMTP provider and WordPress sends an email. The data transmitted includes the email content (recipients, subject, body, and attachments) as required by the SMTP protocol.

No connection is made until you choose a provider and enter your credentials. You can also use any custom SMTP server.

= Gmail / Google Workspace =
* Connects to smtp.gmail.com to send emails via your Gmail or Google Workspace account.
* [Google Terms of Service](https://policies.google.com/terms) | [Google Privacy Policy](https://policies.google.com/privacy)

= Microsoft 365 / Outlook =
* Connects to smtp.office365.com to send emails via your Microsoft account.
* [Microsoft Services Agreement](https://www.microsoft.com/servicesagreement) | [Microsoft Privacy Statement](https://privacy.microsoft.com/privacystatement)

= Yahoo Mail =
* Connects to smtp.mail.yahoo.com to send emails via your Yahoo Mail account.
* [Yahoo Terms of Service](https://legal.yahoo.com/us/en/yahoo/terms/otos/index.html) | [Yahoo Privacy Policy](https://legal.yahoo.com/us/en/yahoo/privacy/index.html)

= SendGrid (Twilio) =
* Connects to smtp.sendgrid.net to send transactional emails via SendGrid.
* [Twilio Terms of Service](https://www.twilio.com/legal/tos) | [Twilio Privacy Policy](https://www.twilio.com/legal/privacy)

= Mailgun (Sinch) =
* Connects to smtp.mailgun.org to send transactional emails via Mailgun.
* [Mailgun Terms of Service](https://www.mailgun.com/legal/terms/) | [Mailgun Privacy Policy](https://www.mailgun.com/legal/privacy-policy/)

= Amazon SES (AWS) =
* Connects to email-smtp.us-east-1.amazonaws.com (region may vary) to send emails via Amazon Simple Email Service.
* [AWS Customer Agreement](https://aws.amazon.com/agreement/) | [AWS Privacy Notice](https://aws.amazon.com/privacy/)

= Postmark (ActiveCampaign) =
* Connects to smtp.postmarkapp.com to send transactional emails via Postmark.
* [Postmark Terms of Service](https://postmarkapp.com/terms-of-service) | [Postmark Privacy Policy](https://postmarkapp.com/privacy-policy)

= Mandrill (Mailchimp / Intuit) =
* Connects to smtp.mandrillapp.com to send transactional emails via Mailchimp Transactional.
* [Mailchimp Terms of Use](https://mailchimp.com/legal/terms/) | [Intuit Privacy Statement](https://www.intuit.com/privacy/statement/)

= Elastic Email =
* Connects to smtp.elasticemail.com to send emails via Elastic Email.
* [Elastic Email Terms of Use](https://elasticemail.com/resources/usage-policies/terms-of-use) | [Elastic Email Privacy Policy](https://elasticemail.com/resources/usage-policies/privacy-policy)

= SMTP2GO =
* Connects to mail.smtp2go.com to send emails via SMTP2GO.
* [SMTP2GO Terms of Service](https://www.smtp2go.com/terms/) | [SMTP2GO Privacy Policy](https://www.smtp2go.com/privacy/)

= Mailtrap (Railsware) =
* Connects to live.smtp.mailtrap.io to send emails via Mailtrap.
* [Mailtrap Terms of Service](https://mailtrap.io/terms/) | [Mailtrap Privacy Policy](https://mailtrap.io/privacy/)

= Zoho Mail =
* Connects to smtp.zoho.com to send emails via your Zoho Mail account.
* [Zoho Terms of Service](https://www.zoho.com/terms.html) | [Zoho Privacy Policy](https://www.zoho.com/privacy.html)

= Brevo (formerly Sendinblue) =
* Connects to smtp-relay.brevo.com to send emails via Brevo.
* [Brevo Terms of Use](https://www.brevo.com/legal/termsofuse/) | [Brevo Privacy Policy](https://www.brevo.com/legal/privacypolicy/)

= Custom SMTP =
* You may also configure any custom SMTP server. The plugin will connect to the host you specify.

== Installation ==

Installing SendGrail SMTP is quick and straightforward.

<strong>Installation from the WordPress Dashboard:</strong>

1. Navigate to <strong>Plugins > Add New</strong> in your WordPress admin dashboard.
2. Search for `SendGrail SMTP`.
3. Click <strong>Install Now</strong> and then click <strong>Activate</strong>.
4. Go to the new <strong>SendGrail</strong> menu in your dashboard sidebar to launch the setup wizard and configure your SMTP provider.

<strong>Manual Installation via FTP:</strong>

1. Download the plugin ZIP file to your computer and extract it.
2. Connect to your website server using your preferred FTP client.
3. Upload the extracted `sendgrail-smtp` folder to the `/wp-content/plugins/` directory on your server.
4. Log in to your WordPress dashboard, navigate to <strong>Plugins > Installed Plugins</strong>, and click <strong>Activate</strong> next to SendGrail SMTP.
5. Navigate to the <strong>SendGrail</strong> settings page to enter your provider credentials.

== Frequently Asked Questions ==

= Does SendGrail work with my existing contact form plugin? =

Yes! SendGrail seamlessly integrates with all major WordPress form plugins, including Contact Form 7, WPForms, Gravity Forms, Ninja Forms, and Fluent Forms. Once SendGrail is active, it automatically takes over email delivery for the entire site.

= Will this fix WooCommerce emails going to spam? =

Absolutely. WooCommerce relies on the standard WordPress email system. By routing these transactional emails (like order receipts and shipping notifications) through a proper SMTP provider via SendGrail, your delivery rates will drastically improve.

= What happens if my main email provider goes down? =

If you have configured Fallback Routing, SendGrail will instantly detect the failure and attempt to send the email using your designated backup provider. This ensures your critical emails are still delivered even during service outages.

= Do I need a paid email provider to use this plugin? =

No, it is not mandatory. While we support premium transactional providers like SendGrid and Amazon SES, you can also connect a free Gmail account, a standard cPanel webmail account, or any other free SMTP service you prefer.

= Is my email data secure when logging is turned on? =

Yes. Your email logs are stored securely in your own WordPress database. We do not transmit your email content to any third-party servers. You also have the option to routinely auto-delete older logs to save database space.

== Screenshots ==

1. SendGrail - Getting Started
2. SendGrail - Choose Your Mail Provider
3. SendGrail - Dark Theme
4. SendGrail - Dashboard
5. SendGrail - Email Provider Connections
6. SendGrail - Email Routes
7. SendGrail - Email Logs
8. SendGrail - Email Delivery Reports
9. SendGrail - Notifications

== Changelog ==

= 1.0.0 =
- Initial release on the WordPress Plugin Repository.
- Introduced core SMTP routing capabilities.
- Added support for standard SMTP, Gmail, Outlook, SendGrid, and Mailgun.
- Implemented Email Logging and Debug Mode features.
- Added Fallback Routing logic for automated failovers.
