Subject: | Bug Report - truncated message |
Date: | Sun, 30 Jun 2013 15:48:04 +0300 |
To: | bug-Email-Send-SMTP-Gmail [...] rt.cpan.org |
From: | אריאל קלגסבלד Ariel Klagsbald <kidronariel [...] gmail.com> |
Conside this:
use Email::Send::SMTP::Gmail;
my $m = Email::Send::SMTP::Gmail->new (-smtp=>'smtp.gmail.com',
-login=>$login,
-pass=>$pass);
$m->send(-bcc => $bcc,
-subject => $subj,
-replyto => $rt,
-body => $body);
$m->bye;
$bcc is a comma-separated list of about 4 addresses. $subj is a utf-8
string of avout 36 chars. $rt is a regular address. $body is something like
$body = (1+$max)."\n$name\n$desc\n$auth");
Each of is components (except the number) is a utf-8 string, possible more
than one line, and possible empty.
The bug is: when the mail is sent, the body is truncated. The is, only half
of $auth is sent. I think it's related to the size of the body (or maybe
the overall message) - the message seems to be truncated when it's too big.
Months ago, I had a similar problem when attaching files. Sometimes the
attached file appeared concatenated to be body (which made it useless, as
its was a binary file), and part of the body (before the attached file) was
truncated. I couldn't reproduce the problem exactly (it behaved differently
each time), but I got the feeling that it has to do with too long utf-8
subject/body.
CentOS (compatible to RedHat 5.5). Perl 5.8.8. Version of
Email::Send::SMTP::Gmail is 0.24
Thanks a lot!