=== Post SMTP Mailer/Email Log - Best Mail SMTP For WP ===
Plugin URI: https://wpexperts.io/
Contributors: wpexpertsio
Tags: email, mail, smtp, wordpress smtp, email log, postman smtp, postman, gmail, google apps, hotmail, yahoo, mandrill api, sendgrid api, elastic email, office365, mailgun
Requires at least: 3.9
Tested up to: 6.1.1
Stable tag: 2.2.3
License: GPLv2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html

Send, log, and get notified when your emails are failing. Plus a unique option for secondary backup SMTP so your emails will never stop. Supports everything: SMTP, Gmail, Mailgun, office365, SendGrid, Elastic Email and OAuth 2.0!

== Description ==

[Live Demo](https://www.tastewp.com/plugins/post-smtp) | [Extensions](https://postmansmtp.com/extension/)

= WordPress Mail SMTP Plugin =

Post SMTP is a next-generation WP Mail SMTP plugin that assists and improves the email deliverability process of your WordPress website. 

**Easy-to-use and reliable** - 300,000+ customers trust Post SMTP Mailer to send their daily WordPress emails to millions of users worldwide.  

Post SMTP is not another WP Mail SMTP clone like WP Bank or Easy SMTP. It helps provide authentication that makes sure your emails get delivered and don't end up in the spam filter or worse, the undelivered email queue.

Post SMTP replaces the default WordPress SMTP library, PHPMailer, with the heavy-duty Zend_Mail - **Never lose an email to PHP mail() again.**

= What makes Post SMTP the best WP Mail SMTP plugin? =
* Post SMTP's intelligent setup wizard helps guide you each and every step of the way from getting started to sending test emails. 
* The connectivity test scans your SMTP server to detect firewall blocks and eliminate configuration mistakes. 
* The built-in Email log is an invaluable resource for diagnosing problems with emails.
* OAuth 2.0 increase the security and protection of email password by discouraging the idea of storing your email password in the WordPress database where it might be found.

Even hosts that block the standard SMTP ports, like GoDaddy or Bluehost, can't stop your email as Post SMTP can deliver via HTTPS if it can't use SMTP.

https://www.youtube.com/watch?v=mXDEEE9jnfw

= Post SMTP Features =
* Easy-to-use, powerful Setup Wizard for perfect configuration
* Commercial-grade Connectivity Tester to diagnose server issues
* Log and resend all emails; see the exact cause of failed emails
* Supports [International alphabets](https://tools.ietf.org/html/rfc6530), [HTML Mail](https://en.wikipedia.org/wiki/HTML_email) and [MultiPart/Alternative](https://en.wikipedia.org/wiki/MIME#Alternative)
* Supports forced recipients (cc, bcc, to) and custom email headers
* [SASL](https://en.wikipedia.org/wiki/Simple_Authentication_and_Security_Layer) Support: Plain/Login/CRAM-MD5/[XOAUTH2](https://en.wikipedia.org/wiki/OAuth#OAuth_2.0) authentication
* Security Support: [SMTPS](https://en.wikipedia.org/wiki/SMTPS) and [STARTTLS](https://en.wikipedia.org/wiki/STARTTLS) ([SSL/TLS](https://en.wikipedia.org/wiki/Transport_Layer_Security))
* Copy configuration to other instances of Post
* Supports the proprietary OAuth 2.0 implementations of Gmail, Hotmail and Yahoo
* Fire-and-forget delivery continues even if you change your password.
* [Set up an app password](https://youtu.be/OX2g6QB6LWI) in your Google account.

= Slack notifications =
Receive Post SMTP notifications on your Slack app. If you approve ["Post SMTP Notifications" app for Slack](https://slack.postmansmtp.com/), you will be notified on any selected workplace about your failed emails.

= Post SMTP Notification Chrome Extension =
[Post SMTP Notification Chrome Extension](https://chrome.google.com/webstore/detail/post-smtp-notifications/npklmbkpbknkmbohdbpikeidiaekjoch?hl=en) - Install Post SMTP's official Chrome Extension to receive notifications of failed emails on your WordPress website. 

= Technical Documentation =
You can read our [Post SMTP technical documentation](https://postmansmtp.com/documentation/) for more details including setting up the plugin and configuring other SMTP options. Also, stay up-to-date on new plugin updates, changes, modifications, and related news by subscribing to the [Post SMTP blog](https://postmansmtp.com/blog/).

= Help & Support =
You can contact our support team by filling out the form on our website. You can raise a request for Post SMTP Mailer Supports using our [support portal](https://objectsws.atlassian.net/servicedesk/customer/portal/16/group/31/create/145).

**Support for Pro Extension** - You can submit a support request for Post SMTP Mailer Pro Extension by visiting our [support portal](https://objectsws.atlassian.net/servicedesk/customer/portal/16/group/31/create/146)

**Configuration Request** - Having trouble configuring Post SMTP Mailer for your WordPress website? Users who are having trouble setting up or configuring the plugin can fill out the [configuration request form](https://postmansmtp.com/configuration-request/) and connect with our support team.

= What is SMTP and why do you need it? =
Simple Mail Transfer Protocol or SMTP is the protocol used for sending emails over the internet. Your email client uses SMTP to send a message to a mail server, which then uses SMTP to relay the message to the correct receiving mail server. 

In essence, SMTP is a set of commands that authenticates and directs the transfer of electronic mail. When configuring your email program, you will typically need to set the SMTP server to your local ISP's SMTP settings.

= Looking for Post SMTP Pro Extensions? = 
[Post SMTP Pro Extensions](https://postmansmtp.com/extensions/) are everything you need to enhance your WordPress email deliverability experience. Check our extensions for Amazon SES, Better Email Logger and Office365.

**Office365 API delivery**
[Office365 Pro extension](https://postmansmtp.com/extensions/office-365-extension-for-post-smtp/) allows you to connect PostSMTP with your Outlook and Microsoft 365 accounts to improve email deliverability.

**Amazon SES API delivery?**
[Amazon SES Pro Extension](https://postmansmtp.com/extensions/post-smtp-extension-for-amazon-ses/) combines Amazon's mail service provider with PostSMTP's powerful and easy-to-use SMTP mailing features. 

**Twilio Pro Extension**
[Twilio Extension](https://postmansmtp.com/extensions/twilio-extension-pro/) allows you to add your phone number so that you can receive SMS notifications and alerts when emails are not delivered to your recipients.

**Better Email Logger Extension?**
[Better Email Logger Pro extension](https://postmansmtp.com/extensions/the-better-email/) allows you to design email marketing campaigns and improve email deliverability for your WordPress site.

**Mail Control Pro Extension**
[Mail Control Pro Extension](https://postmansmtp.com/extensions/post-smtp-mail-control/) allows you to control Post SMTP's email actions like sending email alerts to authors, webmasters, and new users. 

= Post SMTP Membership Plans = 
[Post SMTP membership plans](https://postmansmtp.com/membership-plan/) offer access to all pro extensions along with other benefits including 1-year extension updates and support, Email Reporting, Logging, and Tracking, all other SMTP Services and a 30-day money-back guarantee.

= API (HTTPS) Email Support for different SMTPs =
* **Gmail API for sending Gmail and Google Apps email** (requires a [Google](https://accounts.google.com/signup) account)
Often bloggers and small business owners don't want to use third-party SMTP services. Well you can use your Gmail or G Suite account for SMTP emails.

* **Mandrill API for sending any email** (requires a [Mandrill](http://www.mandrillapp.com) account)
Mandrill is an email infrastructure service offered as an add-on for MailChimp that you can use to send personalized, one-to-one e-commerce emails, or automated transactional emails.

* **Mailgun API for sending any email** (requires a [Mailgun](http://www.mailgun.com) account)
Mailgun SMTP is a popular SMTP service provider that allows you to send large quantities of emails. They allow you to send your first 10,000 emails for free every month.

* **SendGrid API for sending any email** (requires a [SendGrid](https://sendgrid.com) account and PHP 5.3)
SendGrid has a free SMTP plan that you can use to send up to 100 emails per day. With our native SendGrid SMTP integration, you can easily and securely set up SendGrid SMTP on your WordPress site.

* **Sendinblue API for sending any email** (requires a [Sendinblue](https://www.sendinblue.com/) account and PHP 5.3)
SendinBlue is an effective and great email software for Small to Medium businesses. You can build customer relationships with an all-in-one digital marketing toolbox. Their free plan allows you to send up to 300 emails per day.

* **PostMark API for sending any email** (requires a [PostMark](https://postmarkapp.com/) account and PHP 5.3)
Postmark is a cloud-based email management software designed to help businesses handle and streamline the delivery of emails.

* **SparkPost API for sending any email** (requires a [SparkPost](https://www.sparkpost.com/) account and PHP 5.3)
SparkPost is a cloud-based email analytics solution designed to help businesses of all sizes optimize email performance, deliverability, engagement, and more.

= Compatibility & Support =
* [Contact Form 7](https://wordpress.org/plugins/contact-form-7/)
* [Woocommerce](https://wordpress.org/plugins/woocommerce/)
* [New User Approve](https://wordpress.org/plugins/new-user-approve/)
* [Password Protected](https://wordpress.org/plugins/password-protected/)
* [Elementor Forms](https://elementor.com/features/form-widget/)
* [Gravity Forms](http://www.gravityforms.com)
* [Login Designer](https://wordpress.org/plugins/login-designer/)
* [Visual Forms Builder](https://wordpress.org/plugins/visual-form-builder/)
* [Mailster Newsletter plugin](https://mailster.co)
* [SendPress Newsletters](https://wordpress.org/plugins/sendpress/)
* [WP HTML Mail](https://wordpress.org/plugins/wp-html-mail/)
* [Email Templates](https://wordpress.org/plugins/email-templates/)
* .. and every other plugin that uses the WordPress API [wp_mail](https://codex.wordpress.org/Function_Reference/wp_mail) to send mail!

= Requirements =
* WordPress 5.6 and PHP 5.6 with SPL and iconv
* Memory: 750KiB per process at idle
* Reliable mail delivery with custom email domains requires an SPF record
* Reliable SMTP delivery requires credentials with an email service provider

== Installation ==

> To send email reliably, you must use the SMTP server assigned to that email. If Post is unable to connect to the right SMTP server, you may have to ask your host to open the ports, or create a new email account managed by your host, or switch hosts!
> The Connectivity Test utility will tell you which ports are open and the actions available to you.

= Easy to install and setup! (Recommended for all users) =
1. Install and activate the plugin through the 'Plugins' menu in WordPress.
1. In the WordPress 'Settings' menu select 'Post SMTP'.
1. Choose 'Start the Wizard' and follow the instructions.

= To manually configure Password Authentication (Intermediate users only) =

1. Choose configure manually
1. In 'Transport', choose 'SMTP'
1. In 'Outgoing Mail Server Hostname', enter the SMTP Server's hostname
1. In 'Outgoing Mail Server Port', enter the SMTP Server's port
1. In 'Security' choose the appropriate type (a good guess is SMTPS for port 465, STARTTLS otherwise)
1. In 'Authentication', choose the authentication type (a good guess is 'Plain')
1. If your Authentication method is not 'None', enter your username (probably your email address) and password.
1. Choose the 'Message' tab.
1. In 'Envelope From Address' enter your email address. This MUST be the same address you login to webmail with.
1. In 'Message From Address' enter your email address. Or this can be an alias, mailing list, or group email if you wish.
1. Choose the Save Changes button.
1. Send yourself a test email.

= To manually configure OAuth 2.0 Authentication (Advanced users only) =

1. Choose configure manually
1. In 'Transport', choose 'SMTP'
1. In 'Outgoing Mail Server Hostname', enter the SMTP Server's hostname
1. In 'Outgoing Mail Server Port', enter the SMTP Server's port
1. In 'Security' choose the appropriate type (a good guess is SMTPS for port 465, StartTLS otherwise)
1. In 'Authentication' choose 'OAuth 2.0'
1. Post will give you a link to the Client ID maintenance page of your email service provider. Create a Client ID for your WordPress site.. [instructions for this are detailed in the FAQ](https://wordpress.org/plugins/post-smtp/faq/)
1. Copy your generated Client ID and Client secret into the plugin's Settings page.
1. Choose the 'Message' tab.
1. In 'Envelope From Address' enter your email address. This MUST be the same address you login to webmail with.
1. In 'Message From Address' enter your email address. Or this can be an alias, mailing list, or group email if you wish.
1. Choose the Save Changes button.
1. Choose the 'Request OAuth2 Permission' link and follow the instructions.
1. Send yourself a test email.


== Frequently Asked Questions ==

= What is OAuth 2.0? =

A modern replacement for traditional password-based authentication. Post supports the OAuth 2.0 implementations of all three major e-mail providers: Gmail, Hotmail and Yahoo Mail.

= How does OAuth 2.0 work? =

Post requests a limited access OAuth 2.0 token (valet key) to access the APIs (enter the house) and perform a specific service (handle Gmail, stay out of Google Docs) with no need for you to surrender your username and password credentials (master house key).

Once access is granted, Post commandeers the WordPress wp_mail() function to provide an incredibly stable mail sub-system.

There are many reasons why OAuth 2.0 is better than any password-based mechanism:

* Post will never ask for your password, so your password can't be stolen
* If you change your password regularly, you will never have to update Post's configuration
* You have tighter control over the data Post has access to. For Google users it can never access your Calendar or Docs or YouTube; for Yahoo users it can never access your Flickr
* If your WordPress site gets hacked, you can revoke Post's email access without impacting any other application or website that has access to your account

> **[NEVER give out your Gmail, Microsoft or Yahoo password](http://blog.varonis.com/giving-away-your-passwords/)** to a 3rd-party or 3rd-party program that you don't fully trust.

= What is a Client ID? =
To use OAuth, your website needs it's own Client ID. The Client ID is used to control authentication and authorization and is tied to the specific URL of your website. If you manage several websites, you will need a different Client ID for each one.

= How do I get a Microsoft Client ID? (For Hotmail/Live/Outlook.com users only!) =
1. Go to [Microsoft account Developer Center](https://account.live.com/developers/applications/index) and select 'Create application'.
1. In the 'Application name' field enter 'Post SMTP'. Select 'I accept.'
1. Select 'API Settings' from under 'Settings'.
1. In 'Redirect URL', enter the redirect URI given by Post (either from the wizard, or from the manual configuration page). Select Save.
1. Select 'App Settings' from under 'Settings'.
1. Enter the Client ID and Client Secret displayed here into Post's settings page.

= How do I get a Yahoo Client ID? (For Yahoo Mail users only!) =
1. Go to [Yahoo Developer Network](https://developer.yahoo.com/apps/) and select 'Create an App'.
1. In the 'Application Name' field enter 'Post SMTP'. For 'Application Type' choose 'Web Application'.
1. In 'Home Page URL', enter the 'Home Page URL' given by Post.
1. In 'Callback Domain', enter the 'Callback Domain' given by Post.
1. Under 'API Permissions' choose 'Mail'. Under 'Mail' choose 'Read/Write'
1. Click 'Create App'
1. Enter the Client ID and Client Secret displayed here into Post's settings page.

= How can I revoke Post's OAuth 2.0 access? =
* If you have a Google Account, from the [Google Developer's Console](https://www.google.com/accounts/Logout?continue=https://console.developers.google.com) use the Delete button under the Client ID.
* If you have a Microsoft Live account, from the [Microsoft account Developer Center](https://account.live.com/developers/applications/index), select the Application and choose Delete Application.
* If you have a Yahoo Account, from the [Yahoo Developer Network My Apps](https://developer.yahoo.com/apps/), select the Application and choose Delete App.

== Grant OAuth permission error messages ==

Please note that the Client ID and Client Secret fields are NOT for your username and password. They are for OAuth Credentials only.

= Error authenticating with this Client ID. [Error executing wp_remote_post: The user has blocked requests via HTTP.] =

Your WordPress site is configured with WP_HTTP_BLOCK_EXTERNAL to prevent outbound connections. Add a whitelist rule to wp-config.php:
> define('WP_ACCESSIBLE_HOSTS', 'www.googleapis.com, login.live.com, api.login.yahoo.com');

= Error authenticating with this Client ID. [Error executing wp_remote_post: Failed to connect to xxxx] =

There is a firewall on port 443 between you and the OAuth2 server. Open up the port for outbound connections.

= Error: redirect_uri_mismatch =

* You did not enter the Redirect URI correctly.
* You used an IP address instead of a domain name (not allowed)

== SMTP Error Messages ==

= Communication Error 334 make sure the Envelope From Email is the same account used to create the Client ID. =

* This is almost always caused by being logged in to Google/Microsoft/Yahoo with a different user than the one Post is configured to send mail with. Logout and try again with the correct user
* Login to [Webmail](http://www.gmail.com) and see if there is an "Unusual Activity" warning waiting for your attention

= Could not open socket =

* Your host may have installed a firewall between you and the server. Ask them to open the ports.
* Your may have tried to (incorrectly) use SSL over port 587. Check your encryption and port settings.

= Operation Timed out =

* Your host may have poor connectivity to the mail server. Try doubling the Read Timeout.
* Your host may have installed a firewall (DROP packets) between you and the server. Ask them to open the ports.
* Your may have tried to (incorrectly) use TLS over port 465. Check your encryption and port settings.

= Connection refused =

Your host has likely installed a firewall (REJECT packets) between you and the server. Ask them to open the ports.

= 503 Bad sequence of commands =

You configured TLS security when you should have selected no security.

= XOAUTH2 authentication mechanism not supported =

You may be on a Virtual Private Server that is [playing havoc with your communications](https://wordpress.org/support/topic/oh-bother-xoauth2-authentication-mechanism-not-supported?replies=9). Jump ship.

== Mail ends up in the Spam folder ==

To avoid being flagged as spam, you need to prove your email isn't forged. On a custom domain, its up to YOU to set that up:

* Ensure you are using the correct SMTP server with authentication - the correct SMTP server is the one defined by your email service's SPF record
* If you use a custom domain name for email, add an SPF record to your DNS zone file. The SPF is specific to your email provider.
* If you use a custom domain name for email, add a DKIM record to your DNS zone file and upload your Domain Key (a digital signature).


== Screenshots ==

1. WordPress Dashboard showing both the Post widget and At a Glance widget
1. Main Settings screen - shows Main Menu and current status (new installation)
1. Setup Wizard (step 1) - Import data from other plugins
1. Setup Wizard (step 4) - Connectivity Test
1. Manual Configuration - Account Settings: Password Authentication
1. Manual Configuration - Account Settings: OAuth 2.0 Authentication
1. Manual Configuration - Message Settings
1. Manual Configuration - Advanced Settings
1. Test Email utility screen - Oops! Wrong password
1. Emai Log screen
1. Connectivity Test utility screen
1. Diagnostic Information screen
1. Email Log Filter

== Changelog ==

= 2.2.3 - 2022-12-27 =
**FIX**
* Bug Fix - Support menu was disappearing in some cases

= 2.2.2 - 2022-12-19 =
**FIX**

* SendGrid was missing on wizard
* PHP Warnings  

= 2.2.1 - 2022-12-13 =
**FIX**

* Email template HTML was broken

= 2.2 - 2022-12-08 =
* **NEW**
* Added New Socket/ Email Service Postmark
* Added New Socket/ Email Service SparkPost
* **IMPROVEMENTS**
* SSRF Prevention
* SQL Warning Removed
* MailGun SDK Updated to Latest Version
* Compatibility with BackupBuddy added
* **FIXES**
* Multisite Plugin Update
* Additional Headers were not saved properly in some cases
* Import Button was not working in some cases

= 2.1.10 - 2022-10-10 =
* **FIXES**
* Avoid redirection to wizard on activation
* Issue in resend emails 
* Made backend setting fields visible
* **IMPROVEMENTS**
* Email host message
* Sendgrid message id to prevent spam emails

= 2.1.9 - 2022-09-9 =
* **FIX**
* User Compatibility Fix
* Unauthorized error on wizard

= 2.1.8 - 2022-09-5 =
* **FIX**
* Php warnings

= 2.1.7 - 2022-08-30 =
* **FIX**
* Server side request forgery

= 2.1.6 - 2022-08-29 =
* **FIX**
* Server side request forgery

= 2.1.5 - 2022-08-25 =
* **FIX**
* Updated email header to prevent email from being SPAM

= 2.1.4 - 2022-08-18 =
* **NEW**
* Redirect the user to the setup wizard on activating the Plugin
* Added action hook, "post_smtp_before_reset_plugin" to add an event before resetting plugin
* Added action hook, "post_smtp_after_reset_plugin" to add an event after resetting plugin
* Added notice to Grant Access after getting done with the wizard step to improve the UX

* **FIXES**
* Tweaks for PHP Version 8+ compatibility
* Freemius Language FIX
* Security Fix to avoid XSS from admin settings
* Mailster support updated for the latest version (thanks to @evrpress)
* Typo fix: defualt to default (thanks to @jsilvermist)
* Updated email header to prevent email from being SPAM

= 2.1.3- 2022-07-1 =
* **FIX**
* PHP Version Compatibility.

= 2.1.2- 2022-06-30 =
* **NEW**
* Integrated SDK for Feedback and support.
* Added "Start wizard" button in setup notification to optimize UX for the end-user.

* **Improved**
Removed unused code

* **FIX**
Less secure App Banner appearing in non-appropriate cases


= 2.1.1.1 - 2022-06-15 =
* **FIX**
* Sendinblue email header

= 2.1.1 - 2022-06-09 =
* **FIX**
* PHP Version Compatibility.

= 2.1 - 2022-06-09 =
* **NEW**
* All New UI
* Sendinblue API Integration

= 2.0.27 - 2022-05-19 =
Add notice about Google Less Secure App.

= 2.0.26 - 2022-04-22 =
* **Bug Fixes**
* Email header was broken in some cases.

* **Improvements**
* Minor UI improvement.
* `llc` Hostname added in ZendMail.

= 2.0.25 - 2022-04-06 =
* **Bug Fixes**
* WP 5.9 Compatibility Ballon UI issue.
* Uncaught Error: Class PostmanAdminController not found.
* Ajax error appearing due to Google API depreciated function.

* **Improvements**
* Code Optimization.
* MIME version added to test mails to prevent emails from spam.
* NEW Filter `postman_test_email_args` added to modify test email arguments.
* NEW Action `wp_mail_succeeded` added to exectue on every success email delivery.

= 2.0.24 - 2022-02-13
* Update: THE FUTURE OF Post SMTP - https://postmansmtp.com/the-future-of-post-smtp/

= 2.0.23 - 2021-04-22
* Fixed: `WP_Scripts::localize called incorrectly` message.

= 2.0.22 - 2021-02-14
* Update: Chrome extension URL change
* Fixed: Double save when extension save to option

= 2.0.21 - 2021-02-11
* Fixed: Security issue - nonce validation.
* Fixed: Class PostmanViewController not found
* New: New wp-config.php constant to disable the email logger = `POST_SMTP_CORE_MAIL_LOG`.

= 2.0.20 - 2021-01-19
* Fixed: All reported office 365 issues.
* New: Add link to Amazon SES Extension

= 2.0.19 - 2021-01-19
* Fixed: All reported office 365 issues.
* New: Add link to Amazon SES Extension

= 2.0.18 - 2021-01-17
* New: Plugin Extensions

= 2.0.16 - 2020-12-13
* Update: General Info

= 2.0.15 - 2020-08-12
* Fixed: WordPress 5.5 compatibility (stable)

= 2.0.14 - 2020-08-11
* Removed: WordPress 5.5 compatibility (bug)

= 2.0.13 - 2020-08-11
* Fixed: WordPress 5.5 compatibility
* Fixed: Email log filtering
* Fixed: Pushover notifications
* New: Suggest solution for email delivery errors

= 2.0.12 - 2020-05-18
* Updated: Readme file info

= 2.0.11 - 2020-02-25
* Fixed: Slack notifications

= 2.0.10 - 2020-01-21
* Fixed: HTML content type
* Fixed: Sendgrid crash when has duplicates recipients (bypass, Sendgrid issue).
* Fixed: Few OAuth undefined notifications
* Fixed: Duplicate Emails - When you have notify and confirm (Ninja forms, etc..)
* Fixed: Logs wp_error convert

= 2.0.9 - 2020-01-13
* Fixed: Notify on error bug - crash site
* Fixed: From header

= 2.0.8 - 2020-01-12
* Updated: Reply-To header bug

= 2.0.7 - 2020-01-12
* Updated: Improve PHPMailer method.
* Updated: Bug fixes.

= 2.0.6 - 2019-10-08
* Updated: Bug fixes.

= 2.0.5 - 2019-09-26
* New: You can now export logs to CSV.
* Updated: Few notifications errors, and minor improvements.

= 2.0.4 - 2019-08-27
* Updated: More security.

= 2.0.3 - 2019-08-21
* Fixed: A few security issues.

= 2.0.2 - 2019-05-19
* Fixed: Sendgrid code fix.
* Fixed: Default method (nothing configured) will use the default mail on the server and not SMTP.

= 2.0.1 - 2019-05-15
* New: Mailer Type - Added an option to send without overwrite the 'wp_mail' function, better compability to WordPress delivery. hopefully will be the default in the future.
* Updated: Sendgrid API was upgraded and rewritten to the new version.
* Fixed: Message-Id header was missing on SMTP
* Fixed: Email logger optimization - better query for large amount of records.
* Fixed: The localization was fixed to match translate.wordpress.org translation system ( Thanks to Niels de Blaauw from Level-Level ).
* Fixed: Code and optimization ( Thanks to Niels de Blaauw from Level-Level ).

= 1.9.8 - 2019-02-18
* New: a new from field to the fallback - Can't trust the username as "from" value (email address).

= 1.9.7 - 2019-02-17
* New: Fallback Feature - Configure a backup SMTP when emails are failing.
* New: WordPress Multisite compability - with global settings.
* New: Email Log capability - give other user cheking the logs.
* Fixed: compatibility with mailster plugin
* Fixed: Mandrill exception bug - Thanks to Niels de Blaauw from Level-Level

= 1.9.6 - 2019-01-29
* Added support for our new chrome notification extension.
* few fixes

= 1.9.5 - 2018-10-02
* Added support for Mailgun Europe region.
* Replace "buggy" mime_content_type php function

= 1.9.4 - 2018-08-03
The most stupid idea ever remove (auto security select)

= 1.9.3 - 2018-07-26
Removed auto configure for port 25 (can be TLS)

= 1.9.2 - 2018-07-23
Removed deprecated functions from 7.2 + comment unready feature

= 1.9.1 - 2018-07-22
Syntx stupid mistake

= 1.9.0 - 2018-07-22
* Better support for secure delivery
* Support for constants auth (inside wp-config), check the detailes our [Blog](https://postmansmtp.com/post-smtp-1-9-0-better-support-for-secure-delivery)
* Automatic encryption select base on the port input - 25, 465, 587, 2525

= 1.8.9 - 2018-04-24
* Sendgrid bug

= 1.8.8 - 2018-04-24
* file added to svn - contactform7

= 1.8.6 - 2018-04-24
* Fix lockfile erros
* Contact form 7 integration
* PHP 5.6 requirement

= 1.8.5 - 2018-04-19
* Remove Beta Woocommerce integration
* Better check for WPML less then version 3.9

= 1.8.4 - 2018-04-18
* New: Multiple notification options to failed emails
* Upgrade: The Gmail code was upgraded and code change to support large attachments
* Add: Fix release lock file error
* Change: "Not configured..." message is now dismissible

= 1.8.3 - 2018-03-21
* Fix: SendGrid API Call Structure (The previous try didn't work)

= 1.8.2 - 2018-03-21
* Fix: SendGrid API Call Structure

= 1.8.1 - 2018-03-20
* New: Sendgrid API & Client Version 6
* New: Add email log 'send to' column
* Fix: fallback emails on hosting require the '-f' parameter
* Fix: Using hostname insted of an IP
* Fix: Remove mailgun test folder ( virustotal issue )
* Fix: Additional bugs collected from support tickets.
* Added: added filters to from_name and from_email filters (local connection)
* change hostname extrect logic

= 1.8 - 2017-12-24
* New: Mailgun API integration
* New: New filter controls
* New: WPML conflict fix
* Fix: Minor old bugs

= 1.7.10 - 2017-11-21 ==
* Fixed: bug while detecting transcript error

= 1.7.9 - 2017-11-20
* Fixed: misspled false
* Fixed: feedback form
* Fixed: Some localization strings
* Removed: deprecated function
* New: Option to input emails when resend email
* Added: explain message on email log filter

= 1.7.8 - 2017-11-17
* = Menu Items grouping =
* Fixed: IP detection error in some web hosts
* Fixed: Link open in new page attribute = _blank
* Fixed: Replace deprecated PHP 7 functions.
* Updated: Validator TLD's list
* Added: Email log date and search filter.
* Added: Alert on sending error (Fallback to local mail)
* Added: Email body preview (not raw)

= 1.7.7 - 2017-10-17
* Fixed: Error sending files with sendgrid
* Fixed: Wrong attachments format in Mandrill
* Fixed: Wrong Sender Header in Mandrill

= 1.7.6 - 2017-10-17
* Missing sendgrid files
* Fixed: Localization slug

= 1.7.5 - 2017-10-07 =
* Fixed: security issue (XSS)
* Fixed: Small bug with Google API

= 1.7.2 - 2015-11-08 =
* [[Ticket](https://wordpress.org/support/topic/having-troble-in-17-while-set-content-type-to-texthtml?replies=8)] - v1.7 ignores the content-type header set in the Additional Headers. Fixed.
* [[Ticket](https://wordpress.org/support/topic/do-not-network-activate-17-on-multisite?replies=15)] - Fixed an issue where v1.7 admin screens crash for non-admin users when Post is not configured. Fixed a multiste issue where v1.7 site admins lose access to their Post settings screen. Special thank-you to Domi2015 for giving me access for testing! :)
* Localized jQuery Validation messages
* Localized MyMail messages
* Put the local translation files back, as WordPress on-line translations do not work as advertised

= 1.7.1 - 2015-11-05 =
* [[Ticket](https://wordpress.org/support/topic/cant-send-an-email-using-optimizepress?replies=8)] - the Optimizepress plugin calls wp_mail before the WordPress init hook, before Post is fully initialized, so I made a change to accomodate this behavior
* [[Ticket](https://wordpress.org/support/topic/v17?replies=13)] - v1.7 admin screen may become inaccessible after upgrading. Fixed.
* [[Ticket](https://wordpress.org/support/topic/inboundnow-html-e-mail-templates-are-not-being-recognized-with-170?replies=3)] - v1.7 breaks compatibility with [WordPress Leads](https://wordpress.org/plugins/leads/). Fixed.

= 1.7.0 "Iliana" - 2015-11-03 =
* Happy Halowe'en! 30,000 installations! - 2015-10-31
* Integrated Mandrill API
* Integrated SendGrid API
* Language files have been removed from the plugin as [translations are now performed on-line](https://translate.wordpress.org/projects/wp-plugins/Post-smtp). If you are a non-English speaker please constribute!
* Post commandeers email when activated and sends using the WordPress default of localhost:25 - this is for people who want to use it to diagnose email problems without configuring SMTP
* Re-send failed e-mails from the Email Log screen
* Added an internal 'manage_Post_smtp' capability for advanced management with, for example, [User Role Editor](https://wordpress.org/plugins/user-role-editor/)
* [[Ticket](https://wordpress.org/support/topic/exportimport-settings-4?replies=2)][[Ticket](https://wordpress.org/support/topic/export-import-configuration?replies=1)] Added an import/export tab to the Advanced Configuration screen for those who want to duplicate settings between sites.
* [[Ticket](https://wordpress.org/support/topic/gateway-error-invalid-envelope-from-mail-address?replies=9#post-7528068)] Added option to disable e-mail address validation
* [[Ticket](https://wordpress.org/support/topic/error-665?replies=7#post-7581776)] Fix for fatal error when using a non-administrator in the admin menu.

= 1.6.24 - 2015-09-10 =
* 20,000 installations! - 2015-09-09
* Translated into Greek, thank-you Michael Kotsarinis!
* Diagnostic Test displays all the wp_mail-related hooks of active plugins and themes
* When validating e-mail addresses, Post will disclose which field has a validation issue in the error message
* Default log entries bumped from 10 to 250
* [[Ticket](https://wordpress.org/support/topic/for-your-consideration-backup-email-notification?replies=5)] Added nasty fake input field hack to prevent browsers from autofilling username/password fields.
* [[Ticket](https://wordpress.org/support/topic/cf7-godaddy-emails-not-delivered?replies=5)] Added a warning to the Email Log for emails that have an empty subject line
* [[Ticket](https://wordpress.org/support/topic/test-failed-but-meesage-is-sent?replies=12)] Test Email detects Ajax errors and displays them in the Status window
* [[Ticket](https://wordpress.org/support/topic/missing-image-files-of-jquery-ui-1?replies=4)] Removed the references to images in Post's copy of jquery-ui.css causing HTTP 404
* [[Ticket](https://wordpress.org/support/topic/test-email-keeps-on-failing?replies=17)] Fixed an Ajax name collision with the plugin [MemberPress](https://www.memberpress.com)
* [[Ticket](https://wordpress.org/support/topic/message-body-not-send?replies=15)] Some sites can not handle International (UTF-8) characters in the Test Email. Fixed.
* [[Ticket](https://wordpress.org/support/topic/notices-for-google-api-php-client?replies=10)] Fix for PHP Notice: Undefined offset: 1 in Post-smtp/Post/Post-Mail/google-api-php-client-1.1.2/autoload.php on line 22
* [[Ticket](https://wordpress.org/support/topic/test-failed-but-meesage-is-sent?replies=13)] Silenced PHP warnings in Zend_Mail from ini_set

= 1.6.23 - 2015-06-27 =
* 10,000 installations! - 2015-06-27
* 9,000 installations! - 2015-06-20
* [[Ticket](https://wordpress.org/support/topic/conflict-with-bbpress-and-buddy-press-in-1622?replies=2)] Causes bbPress or Buddy Press to generate warning messages. Fixed.
* [[Ticket](https://wordpress.org/support/topic/fatal-error-internal-zend-error-missing-class-information?replies=2#post-7092317)] User reported error "Fatal error: Internal Zend error - Missing class information" - Whoops, used 'require' PostState.php instead of 'require_once' PostState.php which was causing errors. Fixed.
* [[Ticket](https://wordpress.org/support/topic/error-send-mymail-email-marketing?replies=5)] [[Ticket](https://wordpress.org/support/topic/how-configure-mymail-in-plugin?replies=6)] MyMail Newsletter Plugin for WordPress refuses to use wp_mail. I don't want to make this a habit, but I've integrated Post with MyMail's proprietary delivery mechanism.
* [[Ticket](https://wordpress.org/support/topic/cant-send-error-500?replies=11#post-7103035)] Found an environment where the plugin's call to new Exception was creating PHP Fatal errors. Fixed.
* [[Ticket](https://wordpress.org/support/topic/error-calling-post-400-invalid-to-header?replies=4)] Perform validation on all email headers before s