WordPress.org

Plugin Directory

Changeset 3599


Ignore:
Timestamp:
09/26/05 22:58:43 (12 years ago)
Author:
ryanduff
Message:

Fixing headers. now displays charset="blah" instead of just "blah"

Should fix #218 #237 and #243

Location:
wp-contact-form
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • wp-contact-form/branches/1.x/wp-contactform.php

    r3460 r3599  
    136136            $recipient = get_option('wpcf_email'); 
    137137            $subject = get_option('wpcf_subject'); 
    138                         $encoding = get_option('blog_charset'); 
    139138            $success_msg = get_option('wpcf_success_msg'); 
    140139                        $success_msg = stripslashes($success_msg); 
     
    145144            $msg = $_POST['wpcf_msg']; 
    146145         
    147             $headers = "From: $name <$email>\n";  // your email client will show the person's email address like normal 
    148             $headers .= "Content-Type: text/plain; $encoding\n"; // sets the mime type 
     146            $headers = "MIME-Version: 1.0\n"; 
     147                        $headers .= "From: $name <$email>\n"; 
     148                        $headers .= "Content-Type: text/plain; charset=\"" . get_settings('blog_charset') . "\"\n"; 
    149149         
    150150            $fullmsg = "$name wrote:\n"; 
  • wp-contact-form/trunk/wp-contactform.php

    r2320 r3599  
    6969            $recipient = get_option('wpcf_email'); 
    7070            $subject = get_option('wpcf_subject'); 
    71             $encoding = get_option('blog_charset'); 
    7271            $success_msg = get_option('wpcf_success_msg'); 
    7372            $success_msg = stripslashes($success_msg); 
     
    7877            $msg = $_POST['msg']; 
    7978 
    80             $headers = "From: $name <$email>\n";  // your email client will show the person's email address like normal 
    81             $headers .= "Content-Type: text/plain; charset=$encoding\n"; // sets the mime type 
     79      $headers = "MIME-Version: 1.0\n"; 
     80            $headers .= "From: $name <$email>\n"; 
     81            $headers .= "Content-Type: text/plain; charset=\"" . get_settings('blog_charset') . "\"\n"; 
    8282 
    8383            $fullmsg = "$name wrote:\n"; 
Note: See TracChangeset for help on using the changeset viewer.