PHP Mail_Mime: How to properly use encodeHeader() on the body of an email -


मैं इसके लिए वर्ण एन्कोडिंग को कैसे ठीक कर सकता हूँ:

  need_once (/ mail / mime .php "); $ corpoTxt = 'teste envio relatórios sà £ o'; $ corpoHtml = '& lt; html & gt; & lt; body & gt; वर्सा पाउंड ओ एचटीएमएल टेक टेक्टेको & lt; / body & gt; & lt; / html & gt;';   

मैंने कोशिश की:

  $ corpoTxt = $ mime- & gt; एन्कोड हेडर ("कॉर्पो", $ corpoTxt, "utf-8", "उद्धृत-प्रिंट करने योग्य"); $ corpoHtml = $ mime- & gt; एन्कोड हेडर ("corpohtmls", $ corpoHtml, "utf-8", "उद्धृत-प्रिंट करने योग्य");   

लेकिन यह काम नहीं करता, मुझे मिल रहा है :

  वर्सो? एक पाउंड ओ एचटीएमएल टेक टेक्सास   

किसी भी मदद के लिए अग्रिम धन्यवाद!

< $ Mine-headers () फ़ंक्शन को कॉल करने से पहले इन पंक्तियों को शामिल करने का प्रयास करें।

  # सुनिश्चित करें कि EML UTF-8 है $ mimeparams ['डीबग'] = "सच"; $ mimeparams ['text_encoding'] = "8bit"; $ mimeparams ['text_charset'] = "यूटीएफ -8"; $ mimeparams ['html_charset'] = "यूटीएफ- 8 "; $ mimeparams ['head_charset'] =" यूटीएफ -8 "; $ मी ime- & gt; मिल ($ mimeparams);   

यह सुनिश्चित करेगा कि आपका यूटीएफ -8 अक्षर ईएमएल में ठीक से प्रदर्शित होगा। अंत में, इस तरह से TXT और HTML बॉडी को सहेजें:

  $ mime- & gt; setTXTBody ($ corpoTxt); $ Mime- & gt; setHTMLBody ($ corpoHtml);   

यह काम करना चाहिए अधिक सहायता के लिए, इस पर एक नज़र डालें:



Comments

Popular posts from this blog

Verilog Error: output or inout port "Q" must be connected to a structural net expression -

jasper reports - How to center align barcode using jasperreports and barcode4j -

c# - ASP.NET MVC - Attaching an entity of type 'MODELNAME' failed because another entity of the same type already has the same primary key value -