25 名前:nobodyさん mailto:sage [2008/03/10(月) 17:45:06 ID:???] すみません、@niftyのLacoocanで、下のソースをsjisで書いており、 sendmailをcloseしたときにエラー($?=256)が返されてしまうのですが、 これはどういう意味で、どう対処すべきなのでしょうか? 最後の『 or &err("Cannot close sendmail: !=$! ?=$?");』を外しても、メールは送信されないようでした。 教えて頂ければありがたいです。 #タイトルのエンコード $subject = encode('iso-2022-jp', $subject); # iso-2022-jpにエンコード $subject = encode_base64($subject, ''); # Base64にエンコード $subject = '=?iso-2022-jp?B?' . $subject . '?='; # ヘッダー文字列の追加 # 本文のエンコード $content = encode('iso-2022-jp', $content); # iso-2022-jpにエンコード # メール送信 $cnt=<<"EOT"; MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Type: text/plain; charset=iso-2022-jp From: $from To: $to Subject: $subject $content EOT open MAIL, "| /usr/sbin/sendmail -t" or &err("Cannot open sendmail: $!"); print MAIL $cnt; close MAIL or &err("Cannot close sendmail: !=$! ?=$?");