Anonymous Monk has asked for the wisdom of the Perl Monks concerning the following question:
open(MAIL,"|$G{MailProgram}"); print MAIL "To: $In{toemail}\n"; print MAIL "From: \"$In{name}\" \<$In{fromemail}\>\n"; print MAIL "X-IP_Address: $ENV{REMOTE_ADDR}\n"; print MAIL "MIME-version: 1.0\n"; print MAIL "Content-Type: text/plain; charset=ISO-8859-1\n"; print MAIL "Subject: Articulo\n\n"; print MAIL "$In{message}\n\n"; print MAIL "$In{name} le manda este articulo\n\n"; $printline = 0; for(@L) { if($_ =~ /BEGIN mailer/) { $printline = 1; next; } next unless $printline; if($_ =~ /END mailer/) { $printline = 0; next; } $_ =~ s/<.*?>//g; $_ =~ s/&amp;ntilde;/ñ/g; ...and so on with the other characters... print MAIL $_; } close MAIL;
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Spanish special characters
by ChemBoy (Priest) on Jul 26, 2001 at 04:42 UTC | |
|
Re (tilly) 1: Spanish special characters
by tilly (Archbishop) on Jul 26, 2001 at 08:05 UTC |