[Arsperl-users] perl japanese email question
Brought to you by:
jeffmurphy
|
From: Syed B. \(sbasith\) <sb...@ci...> - 2006-03-01 14:07:37
|
Hi all, =20 I have a perl program which accepts japanese characters in the subject and body, i use sendmail to send mail using perl, the body seems to be ok, but the subject comes as junk, is there any header encoding for the subject to be done when i send an email? Below is the code which i use for this. UNICAST reply to me =20 =20 open(EMAIL,"|/usr/lib/sendmail -t -falliupg"); print EMAIL "From: $contact\@cisco.com>\n"; print EMAIL "Subject: ".$subject."\n"; print EMAIL "To: sbasith\@cisco.com\n"; print EMAIL "Content-Type: text/plain; charset=3D\"iso-2022-jp\";encoding=3D\"B\"\n\n"; print EMAIL "$details\n\n"; print EMAIL $_; close( EMAIL ); =20 =20 Thanks =20 Syed Abdul Basith =20 |