summaryrefslogtreecommitdiff
path: root/Postman/PostmanWpMail.php
diff options
context:
space:
mode:
authorYehuda Hassine <yehuda@myinbox.in>2019-04-22 00:23:38 +0300
committerYehuda Hassine <yehuda@myinbox.in>2019-04-22 00:23:38 +0300
commit7781aa65cef32d8c8196979edb21ec4551e5b904 (patch)
tree2a7944400ede6a9a574a83ce89d010b26628fe02 /Postman/PostmanWpMail.php
parentdad9828e8c866e50d6e44aebd103f1ab97409a5b (diff)
downloadPost-SMTP-7781aa65cef32d8c8196979edb21ec4551e5b904.zip
better meta query,bugs, optimization
Diffstat (limited to 'Postman/PostmanWpMail.php')
-rw-r--r--Postman/PostmanWpMail.php4
1 files changed, 4 insertions, 0 deletions
diff --git a/Postman/PostmanWpMail.php b/Postman/PostmanWpMail.php
index 5228fdd..41586b4 100644
--- a/Postman/PostmanWpMail.php
+++ b/Postman/PostmanWpMail.php
@@ -41,6 +41,10 @@ if ( ! class_exists( 'PostmanWpMail' ) ) {
// initialize for sending
$this->init();
+ if ( ! is_array( $headers ) ) {
+ $headers = explode( "\n", str_replace( "\r\n", "\n", $headers ) );
+ }
+
// Apply critical headers
$headers = $this->apply_default_headers( (array)$headers );