Diff of /branches/2.5.4RC1/cgi-bin/yabb2/Sources/Mailer.pm [r1388] .. [r1389]  Maximize  Restore

Switch to side-by-side view

--- a/branches/2.5.4RC1/cgi-bin/yabb2/Sources/Mailer.pm
+++ b/branches/2.5.4RC1/cgi-bin/yabb2/Sources/Mailer.pm
@@ -16,7 +16,7 @@
 use English '-no_match_vars';
 our $VERSION = '2.5.41';
 
-$mailerpmver = 'YaBB 2.5.4 RC1 $Revision: 1195 $';
+$mailerpmver = 'YaBB 2.5.4 RC1 $Revision: 1389 $';
 if ( $action eq 'detailedversion' ) { return 1; }
 
 sub sendmail {
@@ -32,7 +32,8 @@
 # Changed to dash -  misread in mail clients that use semi-colons as a delimiter
     $mbname =~ s/,/-/igsm;
 
-    $charsetheader = $mailcharset ? $mailcharset : $yycharset;
+ #   $charsetheader = $mailcharset ? $mailcharset : $yycharset;
+    $charsetheader = 'UTF-8';
 
     if ( !$from ) {
         $from       = $webmaster_email;
@@ -107,7 +108,7 @@
             $smtp->datasend("From: $fromheader\r\n");
             $smtp->datasend("X-Mailer: YaBB Net::SMTP\r\n");
             $smtp->datasend("Subject: $subject\r\n");
-            $smtp->datasend("Content-Type: text/plain\; charset=$charsetheader\r\n");
+            $smtp->datasend("Content-Type: text/html\; charset=$charsetheader\r\n");
             $smtp->datasend("\r\n");
             $smtp->datasend($message);
             $smtp->dataend();
@@ -167,7 +168,7 @@
     print {$MAIL} "From: $fromheader\n"       or croak "$croak{'print'} mail";
     print {$MAIL} "X-Mailer: YaBB Sendmail\n" or croak "$croak{'print'} mail";
     print {$MAIL} "Subject: $subject\n"       or croak "$croak{'print'} mail";
-    print {$MAIL} "Content-Type: text/plain\; charset=$charsetheader\n\n"
+    print {$MAIL} "Content-Type: text/html\; charset=$charsetheader\n\n"
       or croak "$croak{'print'} mail";
     $message =~ s/\r\n/\n/gsm;
     print {$MAIL} "$message\n" or croak "$croak{'print'} mail";

Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:





No, thanks