469,270 Members | 1,717 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 469,270 developers. It's quick & easy.

email, text files and accents

I'd like to send email containing accents (french one) using PHP
command mail(). The content of these emails are store in text files.

I'de like to know :

- text file format (encoding, with ASCII code ?...) that will contains
my templates with some potential accents

- the right header that i should give to the mail commande

Thanks for all
Jul 17 '05 #1
5 3802
On 19 Nov 2003 15:28:12 -0800, me**@corys.fr (chepiok) wrote:
I'd like to send email containing accents (french one) using PHP
command mail(). The content of these emails are store in text files.

I'de like to know :

- text file format (encoding, with ASCII code ?...) that will contains
my templates with some potential accents
ASCII doesn't have characters with accents. A character set that does include
Western European characters would be ISO-8859-15.

http://en.wikipedia.org/wiki/ISO_8859-15
- the right header that i should give to the mail commande


Content-type: text/plain; charset=iso-8859-15

--
Andy Hassall (an**@andyh.co.uk) icq(5747695) (http://www.andyh.co.uk)
Space: disk usage analysis tool (http://www.andyhsoftware.co.uk/space)
Jul 17 '05 #2
Andy Hassall <an**@andyh.co.uk> wrote:
ASCII doesn't have characters with accents. A character set that does include
Western European characters would be ISO-8859-15.

http://en.wikipedia.org/wiki/ISO_8859-15


When I open my text file and set the encoding to "Wester nISO Latin 9"
(that should be ISO-8859-15 according to
http://en.wikipedia.org/wiki/ISO_8859-15) and try to save, He told me :

"
Jul 17 '05 #3
Hello,

On 11/19/2003 09:28 PM, chepiok wrote:
I'd like to send email containing accents (french one) using PHP
command mail(). The content of these emails are store in text files.

I'de like to know :

- text file format (encoding, with ASCII code ?...) that will contains
my templates with some potential accents

- the right header that i should give to the mail commande


It is not that simple. You need to use quoted-printable in text with
accents in the body and q-encoding in the headers.

You may want to try this class that simplifies that task and more:

http://www.phpclasses.org/mimemessage

--

Regards,
Manuel Lemos

Free ready to use OOP components written in PHP
http://www.phpclasses.org/

Jul 17 '05 #4
On Thu, 20 Nov 2003 00:57:48 +0100, me**@corys.fr (Stéphane Mégy) wrote:
Andy Hassall <an**@andyh.co.uk> wrote:
ASCII doesn't have characters with accents. A character set that does include
Western European characters would be ISO-8859-15.

http://en.wikipedia.org/wiki/ISO_8859-15


When I open my text file and set the encoding to "Wester nISO Latin 9"
(that should be ISO-8859-15 according to
http://en.wikipedia.org/wiki/ISO_8859-15) and try to save, He told me :

"


I think your post has got cut off... that's all that arrived.

--
Andy Hassall (an**@andyh.co.uk) icq(5747695) (http://www.andyh.co.uk)
Space: disk usage analysis tool (http://www.andyhsoftware.co.uk/space)
Jul 17 '05 #5
Yes sorry, your informations are ok. It works now. Thanks
Jul 17 '05 #6

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

2 posts views Thread by c w | last post: by
reply views Thread by David Lambert | last post: by
reply views Thread by Chris Leffer | last post: by
3 posts views Thread by jim | last post: by
reply views Thread by Johnny Jörgensen | last post: by
5 posts views Thread by Amy L. | last post: by
reply views Thread by zhoujie | last post: by
reply views Thread by suresh191 | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.