summaryrefslogtreecommitdiff
path: root/Postman/PostmanWpMail.php
diff options
context:
space:
mode:
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 );