[Date Prev][Date Next][Thread Prev][Thread Next] [Search] [Date Index] [Thread Index]

Re: [MacPerl-WebCGI] rolling my own mailer CGI



>Just one thought: do you declare the charset anywhere in you mail
>headers? It looks like you don't. I forgot the exact syntax, but I think
>it's must be on the "content-type" header line.

At first I didn't, but in the version I put up I did. I postpone the 
header entirely until I've checked the To: address, which is way down at 
the bottom (and hard to see with all my explanations):

	print( MAIL "Content-Type: text/plain;	charset=\"ISO-2022-JP\"\n" );
	print( MAIL "Content-Transfer-Encoding: 8bit\n\n" );

ISO-2022-JP is definitely wrong for shift-JIS. I tried x-sjis and 
Shift-JIS for charset and also binary for Encoding. But it only gets hit 
on the way to the customer's and they were losing patience. So we ended 
up using the mail form on their site (which was probably the correct 
approach for this customer anyway).

But I'll need to figure this out for another customer, pretty soon. Near 
as I can figure, I need to catch shift-JIS and JIS-EUC and either 
translate them myself to 7-bit JIS, or I need to tell our rental server's 
mail program to translate it for us somehow.

Joel

rees_joel@fujicomp.co.jp
http://www.fujicomp.co.jp
http://www.udit.gr.jp


==== Want to unsubscribe from this list?
==== Send mail with body "unsubscribe" to macperl-webcgi-request@macperl.org