Login   Register  
PHP Classes
elePHPant
Icontem

Arabic html mail problem

Recommend this page to a friend!
Stumble It! Stumble It! Bookmark in del.icio.us Bookmark in del.icio.us

      MIME E-mail message sending  >  All threads  >  Arabic html mail problem  >  (Un) Subscribe thread alerts  
Subject:Arabic html mail problem
Summary:encode problem
Messages:15
Author:FREDJ A .J
Date:2011-08-04 02:19:36
Update:2011-08-05 18:41:44
 
  1 - 10   11 - 15  

  1. Arabic html mail problem   Reply   Report abuse  
Picture of FREDJ A .J
FREDJ A .J
2011-08-04 02:19:36
Hi, i'd like to thank you all, i have a problem with arabic html mail, please take a look

https://lh6.googleusercontent.com/-LbzW0FLkiyk/TjoBEmOpf2I/A ...


any help would be greatly appreciated.

  2. Re: Arabic html mail problem   Reply   Report abuse  
Picture of Manuel Lemos
Manuel Lemos
2011-08-04 02:54:47 - In reply to message 1 from FREDJ A .J
If you are using Arabic text, you need to set the message encoding according to character set you are using. You probably just need to set the default_charset variable to utf-8 or whatever character set you text uses.

  3. Re: Arabic html mail problem   Reply   Report abuse  
Picture of FREDJ A .J
FREDJ A .J
2011-08-04 03:13:38 - In reply to message 2 from Manuel Lemos
Thank you Manuel, already done "utf-8" works just fine, but the problem is that the mail subject still unreadable,

NB: when i use '=?UTF-8?B?' . base64_encode($subject) . '?='
works but is there another way?


Thanks Again.

  4. Re: Arabic html mail problem   Reply   Report abuse  
Picture of Manuel Lemos
Manuel Lemos
2011-08-04 03:57:33 - In reply to message 3 from FREDJ A .J
You should not encode the header values yourself. The class does that for you. Just pass it the header values with Arabic text using SetEncodedHeader or SetEncodedEmailHeader.

  5. Re: Arabic html mail problem   Reply   Report abuse  
Picture of FREDJ A .J
FREDJ A .J
2011-08-04 04:35:38 - In reply to message 4 from Manuel Lemos
i don't understand?

SetEncodedHeader("Subject", $subject);

SetEncodedHeader("Subject", $subject, $encoding_charset = 'UTF-8')

  6. Re: Arabic html mail problem   Reply   Report abuse  
Picture of Manuel Lemos
Manuel Lemos
2011-08-04 04:47:12 - In reply to message 5 from FREDJ A .J
Yes, either way it is fine. If you specify the encoding_charset parameter, it will override the value set in the class variable default_charset, so it is not necessary to specify that parameter.

  7. Re: Arabic html mail problem   Reply   Report abuse  
Picture of FREDJ A .J
FREDJ A .J
2011-08-04 05:10:11 - In reply to message 6 from Manuel Lemos
i really appreciate your help, but the same problem, none of them work!

  8. Re: Arabic html mail problem   Reply   Report abuse  
Picture of Manuel Lemos
Manuel Lemos
2011-08-04 06:07:21 - In reply to message 6 from Manuel Lemos
Probably you are doing it wrong. Take a look at the test_multibyte_message.php example script.

http://www.phpclasses.org/browse/file/2934.html

  9. Re: Arabic html mail problem   Reply   Report abuse  
Picture of FREDJ A .J
FREDJ A .J
2011-08-04 18:49:44 - In reply to message 8 from Manuel Lemos
body work, but not subject!!

  10. Re: Arabic html mail problem   Reply   Report abuse  
Picture of FREDJ A .J
FREDJ A .J
2011-08-04 18:50:31 - In reply to message 8 from Manuel Lemos
body work, but not subject!!

 
  1 - 10   11 - 15