Logging stop working with MultiPart email
-
Email Logging dont work if i send mail with wp_mail and mutlipart content. Any suggestion for this case ?
//code sampleforeach ($attachments as $attachment) { $file_content = file_get_contents($attachment); $file_encoded = base64_encode($file_content); $body .= '--' . $boundary . "\r\n"; $body .= 'Content-Type: application/pdf; name="' . basename($attachment) . '"' . "\r\n"; $body .= 'Content-Transfer-Encoding: base64' . "\r\n"; $body .= 'Content-Disposition: attachment; filename="' . basename($attachment) . '"' . "\r\n\r\n"; $body .= chunk_split($file_encoded) . "\r\n\r\n"; } $body .= '--' . $boundary . '--'; wp_mail($to, $subject, $body, $headers, $file_paths);
Viewing 7 replies - 1 through 7 (of 7 total)
Viewing 7 replies - 1 through 7 (of 7 total)
- The topic ‘Logging stop working with MultiPart email’ is closed to new replies.