lghansen has asked for the wisdom of the Perl Monks concerning the following question:
If I replace the sendmail code with Mail::Sender::Easy, I only get a warning, and the e-mail is fine, but I'd prefer not to have the warning: Wide character in print at C:/Perl/site/lib/Mail/Sender.pm line 1767, <GEN0> line 14.use HTML::Entities; use strict; my $input = 'Не просто +'; $input = decode_entities($input); # Sendmail stuff my %mail; $mail{'Content-type'} = 'text/plain; charset="utf-8"'; $mail{smtp} = 'smtp.mycompany.com'; $mail{From} = 'server@mycompany.com'; $mail{To} = 'me@mycompany.com'; $mail{Subject} = 'Sendmail Test'; $mail{Message} = $input; use Mail::Sendmail; Mail::Sendmail::sendmail(%mail) || print STDERR $Mail::Sendmail::error +;
Any ideas how to get either module to work without an error or warning? Thanks, Lisa# Sender setup use Mail::Sender::Easy qw(email); email({ smtp => 'smtp.mycompany.com', from => 'server@mycompany.com', to => 'me@mycompany.com', subject => 'Sender Test', charset => 'utf-8', _text => $input, }) || print STDERR "email() failed: $@";
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Wide characters in e-mail
by pc88mxer (Vicar) on May 01, 2008 at 17:19 UTC | |
by lghansen (Initiate) on May 02, 2008 at 07:13 UTC | |
by almut (Canon) on May 02, 2008 at 09:52 UTC | |
by Jenda (Abbot) on May 03, 2008 at 23:54 UTC | |
by ikegami (Patriarch) on May 04, 2008 at 00:24 UTC | |
by ikegami (Patriarch) on May 04, 2008 at 00:42 UTC | |
by lghansen (Initiate) on May 02, 2008 at 11:12 UTC |