Hello,
On 07/27/2004 11:20 AM, emrahsen51@xxxxxxxxx wrote:
Hi, i want to make a program that reads data from database and create a xml file. Then mail this file to someone else... there is no problem in creating file or mailing. but when i open the attachment in e-mail, some characters in xml tags disappear. so recipient can't parse xml file in attachment. for example in orijinal xml file
<member> <name>emrah</name> <surname>sener</surname> </member>
in the attachment
<member> <name>emrah</name> <surname>sener</surame>(!!!) </member>
is this problem about transfer encoding? i try 7bit, 8bit, base64 ... but nothing happens...
You would better not use 8 bit encoding without knowing if your local mailer supports it. It is safer to use quoted-printable encoding for text parts as all mailers support it.
If you do not know how to use it, you may want to try this class that you can use to compose and send messages including with non-ASCII text parts and attachments.
http://www.phpclasses.org/mimemessage
--
Regards, Manuel Lemos
PHP Classes - Free ready to use OOP components written in PHP http://www.phpclasses.org/
PHP Reviews - Reviews of PHP books and other products http://www.phpclasses.org/reviews/
Metastorage - Data object relational mapping layer generator http://www.meta-language.net/metastorage.html
-- PHP Windows Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php