Comma in header value prevents sending of mail
-
In line 81 of postmark-approved-wordpress-plugin/wp-mail.php exploding the $header_val by “,” may prevent the message from being sent.
For the header I had the following array:
[0] => 'From: SARE Reporting System <[email protected]>', [1] => 'Content-Type: text/html; charset=UTF-8', [2] => 'ReplyTo: ' . $current_user->data->user_email, [4] => 'Cc: Recipient 1 <[email protected]>, [5] => 'Cc: John Dorner, IV <[email protected]>, [6] => 'Cc: Recipient 2 <[email protected]>'
Removing the comma from array key 5 solved the problem.
- The topic ‘Comma in header value prevents sending of mail’ is closed to new replies.