Changeset 568 for trunk/wifidog-auth/wifidog/classes/User.php
- Timestamp:
- 04/25/05 13:07:52 (8 years ago)
- Files:
-
- 1 modified
-
trunk/wifidog-auth/wifidog/classes/User.php (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/wifidog-auth/wifidog/classes/User.php
r567 r568 436 436 $subject = HOTSPOT_NETWORK_NAME._(" lost username request"); 437 437 $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 439 442 mail($this->getEmail(), $subject, $body, $headers); 440 443 } … … 460 463 $url = "http://".$_SERVER["SERVER_NAME"]."/validate.php?user_id=".$this->getId()."&token=".$this->getValidationToken(); 461 464 $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 463 469 mail($this->getEmail(), $subject, $body, $headers); 464 470 } … … 476 482 $headers = 'MIME-Version: 1.0'."\r\n"; 477 483 $headers .= 'Content-type: text/plain; charset=UTF-8'."\r\n"; 478 $headers .= "From: ".VALIDATION_EMAIL_FROM_ADDRESS;484 $headers .= "From: ".VALIDATION_EMAIL_FROM_ADDRESS; 479 485 $subject = HOTSPOT_NETWORK_NAME._(" new password request"); 480 486 $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 482 491 mail($this->getEmail(), $subject, $body, $headers); 483 492 }
