Re: question about mail
| From: | Ligaya Turmelle | Date: | Thu, 05 Feb 2004 00:27:49 +0000 |
| Subject: | Re: question about mail | ||
| References: | 1 2 3 4 | Groups: | php.i18n |
| Request: | Send a blank email to php-i18n+get-662@lists.php.net to get a copy of this message | ||
OK removed all the references to encoding in base64. And am still not
getting Japanese sent.
Code looks like this:
// create parts of email message
// headers
$headers = "From: $frName <$frEmail>\r\n"; // From
$headers .= "Reply-To: $frReToName<$frReToEmail>\r\n"; // Reply to
//$headers .= "MIME-Version: 1.0\r\n"; ////////Removed because
header was being put on by the MTA
//$headers .= "Content-type: text/plain; charset=UTF-8 \r\n";
//utf8 ////////Removed because header was being put on by the MTA
//$headers .= "Content-Transfer-Encoding: base64 \r\n"; // base 64
encoding
// body of the message
mb_language("uni"); // set to Unicode
$message = chunk_split($tMess); // split line into workable
parts (removed base64 encoding here)
// display email
echo "$add<br>";
echo "$sub<BR>";
echo "$headers<BR>";
echo "$message";
//$decodedMessage = base64_decode($message);
//echo "$decodedMessage<BR>";
// send email
$sent = mb_send_mail($add, $sub, $message, $headers);
And I am receiving in my mail box:
ã,°ã,¢ãf ã,¤ãfSã,¿ãfSã,·ãf§ãf«ã,«ãf³ãf^ãfªãf¼ã,¯ãf©ãf- rather then
??????????????????
with this in the header
Content-Transfer-Encoding: 8bit
X-MIME-Autoconverted: from BASE64 to 8bit by host2.this
Any ideas?
"Moriyoshi Koizumi" <moriyoshi@at.wakwak.com> wrote in message
news:9B2DD8C2-56E1-11D8-89A2-000A95CE0C62@at.wakwak.com...
>
> On 2004/02/04, at 15:43, Ligaya Turmelle wrote:
>
> > I did and I got the unicode to work but then the japanese wasn't being
> > sent.
> > Instead of viewing the Japanese in outlook I would get the base 64
> > encoding
> > . If I remove the base 64 encoding I receive garbage. Can you think
> > of
> > anything else?
>
> Oops, forgot to mention that you don't have to base64_encode
> the mail body when it comes to mb_send_mail(). You can
> safely pass it to mb_send_mail as is.
>
> Moriyoshi
>
> > Respectfully,
> > Ligaya Turmelle