anatak Posted December 8, 2007 Share Posted December 8, 2007 I try to send mail messages encoded in UTF-8 it used to work more or less. I received the message on my cellphone and when I manually select the encoding as UTF-8 the message was displayed correctly. I made some changes but basically use the same code and now it does not work anymore. when I use my old code it still works. I am wondering why the new code can not send the message in a readable format to my cellphone. here is what I tested send a mail using the old code with Japanese characters. in a yahoo mail box after selecting view page -> encoding -> utf-8 the mail is displayed correctly in a mozilla thunderbird mailbox the mail is automatically set to utf-8 encoding on my cellphone I have to manually select utf-8 encoding and then the mail is displayed correctly send a mail using the new code with Japanese characters in a yahoo mail box after selecting view page -> encoding -> utf-8 the mail is displayed correctly in a mozilla thunderbird mailbox the mail is automatically set to utf-8 encoding on my cellphone after selecting utf-8 encoding the japanese characters are just left out. there are no changes in the form from wich to send mail the only changes are in the mailfunction I use old function function mailuser($arg1, $arg2, $arg3, $arg4) { $to = $arg1; $subject = $arg2; $body = $arg3; $header = $arg4; ini_set("SMTP", "mail.kyushuinfo.com"); //use for online version ini_set("smtp_port", "25"); mail($to, $subject, $body, $header); } new function function mailuser($to, $subject, $body, $header) { ini_set("SMTP", "mail.kyushuinfo.com"); //use for online version ini_set("smtp_port", "25"); mail($to, $subject, $body, $header); } I don't see how that can affect the way the mail is send Does anyone have any suggestions or ideas what may be the problem ? kind regards anatak Quote Link to comment Share on other sites More sharing options...
BenInBlack Posted December 8, 2007 Share Posted December 8, 2007 1. you download xpertmailer from this link: http://www.xpertmailer.com/ 2. you install it 3. you include it 4. you set charset $m = new MAIL; $m->Html = array( 'content' => '<b>text/html <i>message</i></b>', // required 'charset' => 'utf-8', // optional 'encoding' => 'base64' // optional ); 5. you mail it ;-) Quote Link to comment Share on other sites More sharing options...
anatak Posted December 8, 2007 Author Share Posted December 8, 2007 thank you I will have a look at this. I am still going to try to find why the code does not work while there are no changes It is just something I would like to find out for myself. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.