Friday 29 June 2007 2:19:48 am
I am using the <b>Simplified Chinese</b>. A <b>hotmail</b> mailbox is used to test the activation email. 1.Change the <b>OutputCharset</b> item of <b>[MailSetings]</b> section in <i>/settings/site.ini</i> from utf-8 to GB2312. OutputCharset=utf-8 --> OutputCharset=GB2312
No effect. 2. From another post in this forum, I know that:
The mails are send in 'kernel/user/register.php'.
The mails template are in:
design:user/registrationinfo.tpl
design:user/registrationfeedback.tpl.
And I find that the following codes in <i>kernel/user/register.php</i> are are relation to mail sending:
$templateResult =& $tpl->fetch( 'design:user/registrationinfo.tpl' );
$emailSender = $ini->variable( 'MailSettings', 'EmailSender' );
if ( !$emailSender )
$emailSender = $ini->variable( 'MailSettings', 'AdminEmail' );
$mail->setSender( $emailSender );
$mail->setReceiver( $receiver );
$subject = ezi18n( 'kernel/user/register', 'Registration info' );
if ( $tpl->hasVariable( 'subject' ) )
$subject = $tpl->variable( 'subject' );
$mail->setSubject( $subject );
$mail->setBody( $templateResult );
$mailResult = eZMailTransport::send( $mail );
I used <b>mb_convert_encoding</b> to convert the <b>$subject</b> and the <b>$templateResult</b> to <b>GB2312</b>. But I get a different chaotic codes activation email. 3.I use a <b>gmail.com</b> mailbox and a <b>yahoo.com.cn</b> mailbox to test the activation email, the activation emails are all normal. 4.According to a post:
Log in the hotmail mailbox
Click "Email"
Clisk "Options"
Click "Email"
Click "Email display settings"
Click "Email head"
Select "Advanced"
Click "OK"
Open the email
Refresh the page
Click the hypelink "Content-Type:text/html" under "View original file of the email"
Download and open the text file
(The steps above is translated from Chinese, so I'm not sure they are exact because of my poor English) <b>Then I see the normal email content with UltraEdit.</b> Some people say that the hotmail doesn't support utf-8 well. I think so. I'd like to thanks <b>kracker</b>'s encouragement and other people's passionate help. Good weekend! OnlyBlue
☆..·°∴°.☆°°.☆°.
°∴ °☆ .·enjoy star° .·★°∴°
∴°.°★ .·°
ミ☆°∴°.★☆° ∴·°
°.☆° .·∴°
Is it a pleasure after all to practice in due time what one has learnt?
|