Show
Ignore:
Timestamp:
04/25/05 13:07:52 (8 years ago)
Author:
fproulx
Message:

2005-04-25 Fran�ois Proulx <francois.proulx@…

  • More interface work
Files:
1 modified

Legend:

Unmodified
Added
Removed
  • trunk/wifidog-auth/wifidog/classes/User.php

    r567 r568  
    436436                $subject = HOTSPOT_NETWORK_NAME._(" lost username request"); 
    437437                $body = _("Hello,\nYou have requested that the authentication server send you your username:\nUsername: ").$username._("\n\nHave a nice day,\nThe Team"); 
    438  
     438         
     439        //TODO: Find a way to use correctly mb_encode_mimeheader  
     440        $subject = mb_convert_encoding($subject, "ISO-8859-1","AUTO"); 
     441         
    439442                mail($this->getEmail(), $subject, $body, $headers); 
    440443        } 
     
    460463                                $url = "http://".$_SERVER["SERVER_NAME"]."/validate.php?user_id=".$this->getId()."&token=".$this->getValidationToken(); 
    461464                                $body = _("Hello,\nPlease follow the link below to validate your account.\n").$url._("\n\nThank you,\nThe Team."); 
    462  
     465                 
     466                //TODO: Find a way to use correctly mb_encode_mimeheader  
     467                $subject = mb_convert_encoding($subject, "ISO-8859-1","AUTO"); 
     468         
    463469                                mail($this->getEmail(), $subject, $body, $headers); 
    464470                        } 
     
    476482                $headers = 'MIME-Version: 1.0'."\r\n"; 
    477483                $headers .= 'Content-type: text/plain; charset=UTF-8'."\r\n"; 
    478                 $headers .= "From: ".VALIDATION_EMAIL_FROM_ADDRESS; 
     484        $headers .= "From: ".VALIDATION_EMAIL_FROM_ADDRESS; 
    479485                $subject = HOTSPOT_NETWORK_NAME._(" new password request"); 
    480486                $body = _("Hello,\nYou have requested that the authentication server send you a new password:\nUsername: ").$username._("\nPassword: ").$new_password._("\n\nHave a nice day,\nThe Team"); 
    481  
     487         
     488        //TODO: Find a way to use correctly mb_encode_mimeheader  
     489        $subject = mb_convert_encoding($subject, "ISO-8859-1","AUTO"); 
     490         
    482491                mail($this->getEmail(), $subject, $body, $headers); 
    483492        }