Skip Menu |

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

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

People
Owner: PECO [...] cpan.org
Requestors: Slava [...] furist.kiev.ua
Cc:
AdminCc:

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



Subject: Charset header
Date: Thu, 2 Feb 2012 14:00:44 +0200
To: bug-Email-Send-SMTP-Gmail [...] rt.cpan.org
From: Furist Vyacheslav <siaffa [...] gmail.com>
Hello. I faced with problem, when I'm sending emails in local charset (in my case - in Russian). Email-Send-SMTP-Gmail creates email header without specification of Charset. Such as: $self->{sender}->datasend("Content-Type: text/plain\n"); But different email agents (MUA) have different default setting from Charset. End if we don't specify Charset some agents can't recognize charset and displays test incorrectly. I think it would be nice, if you add additional optional attribute to method send() which allow to specify charset Something like that: $mail->send(-to=>'target@xxx.com', -subject=>'Hello!', -verbose=>'1', -charset=>'KOI8-R', -body=>'Just testing it'); ////// When preparing header: $self->{sender}->datasend("Content-Type: text/plain; charset=". $mail->{charset} . "\n"); Thank you very much for very useful and simply library! I hope that this small improvement will do the library better. -- Vyacheslav.
Many thanks for your idea and support. New release (0.24) should be available soon at CPAN (already uploaded) containing the charset option. By default the module uses UTF-8 Hope this helps. Peco On Thu Feb 02 07:00:53 2012, Slava@furist.kiev.ua wrote: Show quoted text
> Hello. > > I faced with problem, when I'm sending emails in local charset (in my case > - in Russian). > Email-Send-SMTP-Gmail creates email header without specification of
Charset. Show quoted text
> Such as: > $self->{sender}->datasend("Content-Type: text/plain\n"); > > But different email agents (MUA) have different default setting from > Charset. End if we don't specify Charset some agents can't recognize > charset and displays test incorrectly. > I think it would be nice, if you add additional optional attribute to > method send() which allow to specify charset > > Something like that: > $mail->send(-to=>'target@xxx.com', > -subject=>'Hello!', > -verbose=>'1', > -charset=>'KOI8-R', > -body=>'Just testing it'); > > ////// When preparing header: > $self->{sender}->datasend("Content-Type: text/plain; charset=". > $mail->{charset} . "\n"); > > > Thank you very much for very useful and simply library! > I hope that this small improvement will do the library better. >