Changeset 228

Show
Ignore:
Timestamp:
08/27/08 19:53:39 (3 months ago)
Author:
tgenannt
Message:

fixed utf-8 encoding error

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • trunk/system_scripts/autoresponder.pl

    r170 r228  
    100100#Now check if autoresponder is enabled 
    101101my $dbh = DBI->connect($dsn, $config{'db_username'}, $config{'db_password'}); 
    102 $dbh->do("SET NAMES utf8"); 
    103102 
    104103sub check_du_feature($$) { 
     
    216215        my $e_send_to = MIME::Entity->build( 
    217216                Type    => "text/plain", 
    218                 Charset => "UTF-8", 
     217                Charset => "utf-8", 
    219218                Disposition => 'inline', 
    220219                Data    => $mail_text); 
    221                         $e_send_to->head->add("User-Agent", 'CPM/Autoresponder'); 
    222                         $e_send_to->head->add("To", $mail_from); 
    223                         $e_send_to->head->add("X-Loop", "No"); 
    224                         $e_send_to->head->add("X-No-Loop", "Yes"); 
    225                         $e_send_to->head->add("Sender",$sender ); 
    226                         $e_send_to->head->add("From", $sender); 
    227                         $e_send_to->head->add("Subject", $subject ); 
    228                         $e_send_to->send; 
    229                         $e_send_to->stringify; 
     220        $e_send_to->head->add("User-Agent", 'CPM/Autoresponder'); 
     221        $e_send_to->head->add("To", $mail_from); 
     222        $e_send_to->head->add("X-Loop", "No"); 
     223        $e_send_to->head->add("X-No-Loop", "Yes"); 
     224        $e_send_to->head->add("Sender",$sender ); 
     225        $e_send_to->head->add("From", $sender); 
     226        $e_send_to->head->add("Subject", $subject ); 
     227        $e_send_to->send; 
     228        $e_send_to->stringify; 
    230229        #OK send autoresponder to email and save email addr in DB 
    231230        $sql=sprintf("INSERT INTO autoresponder_send SET email=%s, efromto=%s",