tomazos has asked for the wisdom of the Perl Monks concerning the following question:
use HTML::Entities; open MAIL, q(|/usr/lib/sendmail -t -f 'bar@bar.com') or die 'cant open sendmail'; print MAIL "From: foo <bar\@bar.com>\n"; print MAIL "To: boo <far\@far.com>\n"; print MAIL "\n"; print MAIL encode_entities($body),"\n"; print MAIL ".\n"; close MAIL;
The encode_entities is clearly overkill.
Is there an equivilant for whatever encoding is correct for email? Or would no encoding be safe even though $body is untrusted?
-Andrew.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: encode_entities for sendmail
by jasonk (Parson) on Aug 18, 2005 at 13:05 UTC | |
|
Re: encode_entities for sendmail
by merlyn (Sage) on Aug 18, 2005 at 14:01 UTC |