Skip Menu |

This queue is for tickets about the Email-Send-SMTP-Gmail CPAN distribution.

Report information
The Basics
Id: 107307
Status: resolved
Worked: 1 min
Priority: 0/
Queue: Email-Send-SMTP-Gmail

People
Owner: PECO [...] cpan.org
Requestors: v0rd [...] yandex.ru
Cc:
AdminCc:

Bug Information
Severity: (no value)
Broken in: (no value)
Fixed in: 1.21



Subject: Large message body also needs to be split into chunks for successfull sending
Date: Fri, 25 Sep 2015 00:52:59 +0300
To: bug-email-send-smtp-gmail [...] rt.cpan.org
From: Воробьев Дмитрий <v0rd [...] yandex.ru>
Hi. I've encountered the same problem described in https://rt.cpan.org/Public/Bug/Display.html?id=101832 in case of large message body. According to the source message body is sent "as is" without chunking in 2 places in code:
 
$self->{sender}->datasend($mail->{body} . "\n\n");
 
And this will lead to drop of the connection. I've changed these lines to:
 
my @groups_body = split(/(.{76})/,$mail->{body});
$self->{sender}->datasend($_) foreach @groups_body;
$self->{sender}->datasend("\n\n");
 
as for the code sending atthachments and this has fixed the problem.
Maybe this should be included in th next version.
 
Thanks,
Dmitry
 
Thank you very much. It will be added into the next release! Regards On Thu Sep 24 17:53:13 2015, v0rd@yandex.ru wrote: Show quoted text
> Hi. I've encountered the same problem described in > https://rt.cpan.org/Public/Bug/Display.html?id=101832 in case of large > message > body. According to the source message body is sent "as is" without > chunking in > 2 places in code: $self->{sender}->datasend($mail->{body} . "\n\n"); > And this > will lead to drop of the connection. I've changed these lines to: my > @groups_body = split(/(.{76})/,$mail->{body}); > $self->{sender}->datasend($_) foreach @groups_body; > $self->{sender}->datasend("\n\n"); as for the code sending > atthachments and > this has fixed the problem.Maybe this should be included in th next > version. > Thanks,Dmitry
Resolved! On Sun Sep 27 07:00:12 2015, PECO wrote: Show quoted text
> Thank you very much. > > It will be added into the next release! > > Regards > > On Thu Sep 24 17:53:13 2015, v0rd@yandex.ru wrote:
> > Hi. I've encountered the same problem described in > > https://rt.cpan.org/Public/Bug/Display.html?id=101832 in case of large > > message > > body. According to the source message body is sent "as is" without > > chunking in > > 2 places in code: $self->{sender}->datasend($mail->{body} . "\n\n"); > > And this > > will lead to drop of the connection. I've changed these lines to: my > > @groups_body = split(/(.{76})/,$mail->{body}); > > $self->{sender}->datasend($_) foreach @groups_body; > > $self->{sender}->datasend("\n\n"); as for the code sending > > atthachments and > > this has fixed the problem.Maybe this should be included in th next > > version. > > Thanks,Dmitry
> >
Bug-report closed! Thank you very much Peco On Mon Jun 26 07:23:08 2017, PECO wrote: Show quoted text
> Resolved! > > On Sun Sep 27 07:00:12 2015, PECO wrote:
> > Thank you very much. > > > > It will be added into the next release! > > > > Regards > > > > On Thu Sep 24 17:53:13 2015, v0rd@yandex.ru wrote:
> > > Hi. I've encountered the same problem described in > > > https://rt.cpan.org/Public/Bug/Display.html?id=101832 in case of large > > > message > > > body. According to the source message body is sent "as is" without > > > chunking in > > > 2 places in code: $self->{sender}->datasend($mail->{body} . "\n\n"); > > > And this > > > will lead to drop of the connection. I've changed these lines to: my > > > @groups_body = split(/(.{76})/,$mail->{body}); > > > $self->{sender}->datasend($_) foreach @groups_body; > > > $self->{sender}->datasend("\n\n"); as for the code sending > > > atthachments and > > > this has fixed the problem.Maybe this should be included in th next > > > version. > > > Thanks,Dmitry
> > > >
> >