Skip Menu |

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

Report information
The Basics
Id: 117817
Status: resolved
Priority: 0/
Queue: Email-Send-SMTP-Gmail

People
Owner: PECO [...] cpan.org
Requestors: tirramissu [...] gmail.com
Cc:
AdminCc:

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



Subject: Problem with cyrillic chars in mail subject.
Date: Tue, 13 Sep 2016 19:55:55 +0300
To: bug-Email-Send-SMTP-Gmail [...] rt.cpan.org
From: tirramissu <tirramissu [...] gmail.com>
Hello! I've found a problem with the module with non-latin chars in message subject field. [image: Inline image 1] Module inserts 'Date: DATE_HERE' string into it. Here's a raw mail example:. [image: Inline image 2] And here's how it was inited: my $mail = Email::Send::SMTP::Gmail->new ( -smtp => $cfg->{IMAP}, -login => $cfg->{USER}, -pass => $cfg->{PASS} ); $mail->send ( -to => $cfg->{MAIL_TO}, -subject => $cfg->{MAIL_SUBJECT}, -verbose => $cfg->{DEBUG}, -body => '', -attachments => "/XSLX_FILE_PATH.xlsx" ); $mail->bye; Hope this might help!
Download image.png
image/png 37.7k
image.png
Download image.png
image/png 22.7k
image.png
Hello!, Sorry, I'm unable to reproduce your behavior. I did this test without issues: my $subject = 'Администрация района'; my $content = 'hello world'; my $mail = Email::Send::SMTP::Gmail->new(-login=>'xxx',-pass=> 'yyy'); $mail->send(-to=>'zzz', -subject=> $subject, -body=> $content); $mail->bye; So please, check how is your subject string encoded (utf?), before to pass it as parameter. Regards, Peco On Tue Sep 13 12:56:06 2016, tirramissu@gmail.com wrote: Show quoted text
> Hello! > I've found a problem with the module with non-latin chars in message > subject field. > [image: Inline image 1] > Module inserts 'Date: DATE_HERE' string into it. > Here's a raw mail example:. > [image: Inline image 2] > And here's how it was inited: > > my $mail = Email::Send::SMTP::Gmail->new ( > -smtp => $cfg->{IMAP}, > -login => $cfg->{USER}, > -pass => $cfg->{PASS} > ); > > $mail->send ( > -to => $cfg->{MAIL_TO}, > -subject => $cfg->{MAIL_SUBJECT}, > -verbose => $cfg->{DEBUG}, > -body => '', > -attachments => "/XSLX_FILE_PATH.xlsx" > ); > > $mail->bye; > > Hope this might help!
Bug-report closed as no new information has been received. Anyway, a new release has been done Thank you very much Peco On Fri Sep 16 05:50:30 2016, PECO wrote: Show quoted text
> Hello!, > > Sorry, I'm unable to reproduce your behavior. I did this test without > issues: > > my $subject = 'Администрация района'; > my $content = 'hello world'; > > my $mail = Email::Send::SMTP::Gmail->new(-login=>'xxx',-pass=> 'yyy'); > $mail->send(-to=>'zzz', -subject=> $subject, -body=> $content); > $mail->bye; > > So please, check how is your subject string encoded (utf?), before to > pass it as parameter. > > Regards, > Peco > > On Tue Sep 13 12:56:06 2016, tirramissu@gmail.com wrote:
> > Hello! > > I've found a problem with the module with non-latin chars in message > > subject field. > > [image: Inline image 1] > > Module inserts 'Date: DATE_HERE' string into it. > > Here's a raw mail example:. > > [image: Inline image 2] > > And here's how it was inited: > > > > my $mail = Email::Send::SMTP::Gmail->new ( > > -smtp => $cfg->{IMAP}, > > -login => $cfg->{USER}, > > -pass => $cfg->{PASS} > > ); > > > > $mail->send ( > > -to => $cfg->{MAIL_TO}, > > -subject => $cfg->{MAIL_SUBJECT}, > > -verbose => $cfg->{DEBUG}, > > -body => '', > > -attachments => "/XSLX_FILE_PATH.xlsx" > > ); > > > > $mail->bye; > > > > Hope this might help!