Resending HTML Email failure, raw html sent
-
When using the resend button to send HTML emails, the recipient only gets the raw html code.
The problem is in PostmanEmailLogController/resendMail
The wp_mail function here uses the headers as retrieved by get_post_meta, however, the value for $meta_values [‘original_headers’] [0] is a php serialized array.If this is unserialized it works correctly, so adding the line:
$meta_values [‘original_headers’][0] = unserialize($meta_values[‘original_headers’][0]);
solves it (wp_mail accepts an array for headers)
Viewing 5 replies - 1 through 5 (of 5 total)
Viewing 5 replies - 1 through 5 (of 5 total)
- The topic ‘Resending HTML Email failure, raw html sent’ is closed to new replies.