Forum Replies Created

Viewing 3 replies - 646 through 648 (of 648 total)
  • Plugin Author Sofyan Sitorus

    (@sofyansitorus)

    Thanks atas rating dan review nya bro… Semoga sukses selalu dan dagangan laris manis…

    Plugin Author Sofyan Sitorus

    (@sofyansitorus)

    Version 1.1.3 sudah di improve dengan menambahkan “Settings” link pada halaman plugin list.

    Thread Starter Sofyan Sitorus

    (@sofyansitorus)

    The fixed code should be like this

    // If we are not given a Content-Type from the supplied headers, use
    // text/html and *attempt* to strip tags and provide a text/plain
    // version.
    if (!isset($content_type)) {
    // Try to figure out the content type with mime_content_type.
    $tmppath = tempnam(sys_get_temp_dir(), ‘mg’);
    $tmp = fopen($tmppath, ‘w+’);

    fwrite($tmp, $message);
    fclose($tmp);

    // Get mime type with mime_content_type
    $content_type = get_mime_content_type($tmppath, ‘text/plain’);

    // Remove the tmpfile
    unlink($tmppath);
    }

    // Allow external content type filter to function normally
    if (has_filter(‘wp_mail_content_type’)) {
    $content_type = apply_filters(
    ‘wp_mail_content_type’,
    $content_type
    );
    }

    And this fix will also fix issue: [Resolved] HTML rendered as plaintext in some emails

Viewing 3 replies - 646 through 648 (of 648 total)