Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Extended characters and Sendmail

0 views
Skip to first unread message

Ian Michael

unread,
Dec 3, 2002, 5:27:32 AM12/3/02
to
Using Demon Showroom account. I have been struggling to find out how to
get extended characters such as u umlaut etc. to be e-mailed from a form
on the web site. They appear in an HTML page output from the script, but
not in the text that is e-mailed. The script works fine with other
"normal" characters, but the extended ones disappear. I have tried
experimenting with various types of "Content-transfer-encoding:", namely
quoted-printable, 8bit, 7bit but it does not make any difference.

I am hoping that there is a "magic switch" that I am missing. Any ideas?
The e-mailing part of the script is given below:

($mailprog is /usr/lib/sendmail)

open (MAIL, "|$mailprog -oi -t $recipient") || die "Can't open
$mailprog!\n";
print MAIL "MIME-Version: 1.0\n";
print MAIL "Content-type: text/plain; charset=iso-8859-1\n";
print MAIL "Content-transfer-encoding: 8bit\n";
print MAIL "Reply-to: $sender \n";
print MAIL "Subject: The Subject\n\n";
print MAIL "$email_body\n";
print MAIL "\n----------------------------------------------------------
--\n\n";
print MAIL "Server protocol: $ENV{'SERVER_PROTOCOL'}\n";
print MAIL "Remote host: $ENV{REMOTE_HOST}\n";
print MAIL "Remote IP address: $ENV{'REMOTE_ADDR'}\n";
print MAIL "Browser: $ENV{'HTTP_USER_AGENT'}\n";
close (MAIL);

--
Ian Michael

0 new messages