🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

1 total messages Started by Ian Michael Tue, 03 Dec 2002 10:27
Extended characters and Sendmail
#159
Author: Ian Michael
Date: Tue, 03 Dec 2002 10:27
31 lines
2227 bytes
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
Thread Navigation

This is a paginated view of messages in the thread with full content displayed inline.

Messages are displayed in chronological order, with the original post highlighted in green.

Use pagination controls to navigate through all messages in large threads.

Back to All Threads