PHP Classes

Sending e-mail in utf-8

Recommend this page to a friend!

      MIME E-mail message sending  >  MIME E-mail message sending package blog  >  How Can PHP Send Emai...  >  All threads  >  Sending e-mail in utf-8  >  (Un) Subscribe thread alerts  
Subject:Sending e-mail in utf-8
Summary:Is it possible to send e-mails in utf-8 ?
Messages:5
Author:Jan Kirkor
Date:2007-05-10 15:52:35
Update:2008-03-18 08:23:13
 

  1. Sending e-mail in utf-8   Reply   Report abuse  
Picture of Jan Kirkor Jan Kirkor - 2007-05-10 15:52:35
It seems to me the package send e-mails in ISO-8859-1
Is it possible to chane encoding to utf-8 ?
JMKR

  2. Re: Sending e-mail in utf-8   Reply   Report abuse  
Picture of Manuel Lemos Manuel Lemos - 2007-05-10 16:42:03 - In reply to message 1 from Jan Kirkor
Sure, just set the charset class variable to utf-8. The default value is iso-8859-1.

  3. Re: Sending e-mail in utf-8   Reply   Report abuse  
Picture of Jan Kirkor Jan Kirkor - 2007-05-10 20:04:18 - In reply to message 2 from Manuel Lemos
Thank you, Manuel for your quick reply.
Have a good luck !
JMKR

  4. Re: Sending e-mail in utf-8   Reply   Report abuse  
Picture of Andreas Schosser Andreas Schosser - 2008-03-17 10:38:07 - In reply to message 2 from Manuel Lemos
Hi Manuel,

what do you think of my solution to specify encoding at runtime (as in AddQuotedPrintableTextPart):

Function SetEncodedHeader($header,$value, $charset)
{
// patch to specify encoding at runtime
if (!charset) {
$charset = $this->default_charset;
}
return($this->SetHeader($header,$value, $charset));
}

It's a great class.
Thank you,

Andreas

  5. Re: Sending e-mail in utf-8   Reply   Report abuse  
Picture of Manuel Lemos Manuel Lemos - 2008-03-18 08:23:14 - In reply to message 4 from Andreas Schosser
Yes, you can do that. I will add that for the next release of the class.