Board index   FAQ   Search  
Register  Login
Board index php forum :: php coding PHP coding => Mail

displaying unreadable codes when creating a mailbox

the mail() function

Moderators: macek, egami, gesf

displaying unreadable codes when creating a mailbox

Postby andy » Mon Jul 28, 2008 1:28 am

Hello,everyone:
I am from china. I have a problem when I create a new mailbox whose name is chinese.
the codes I use follow belows:
Code: Select all
$mbox = imap_open("{localhost}INBOX", "aaa", "123456", OP_HALFOPEN)
     or die("can't connect: " . imap_last_error());

$name2 = imap_utf7_encode("测试");

if (!imap_createmailbox($mbox,"{localhost}$name2")) {
   echo "Unable to create new mailbox!\n";
            echo imap_last_error();
}
else
{
echo "OK";
}



If the mailbox's name is english, it is well.
Can anyone help me?
Thank you !
andy
New php-forum User
New php-forum User
 
Posts: 2
Joined: Mon Jul 28, 2008 1:07 am

Re: displaying unreadable codes when creating a mailbox

Postby andy » Mon Jul 28, 2008 6:32 pm

Pleas help. :(
andy
New php-forum User
New php-forum User
 
Posts: 2
Joined: Mon Jul 28, 2008 1:07 am

Re: displaying unreadable codes when creating a mailbox

Postby AeroX » Tue Jul 29, 2008 4:19 am

What error message does this produce?
User avatar
AeroX
New php-forum User
New php-forum User
 
Posts: 142
Joined: Sun May 11, 2008 1:40 am
Location: London, UK


Return to PHP coding => Mail

Who is online

Users browsing this forum: No registered users and 1 guest

Sponsored by Sitebuilder Web hosting and Traduzioni Italiano Rumeno and antispam for cPanel.