Hi Guys,
I think it is a serious problem in Ruby1.9 in sending email in other
charset.
I used a few days and solved it now.
To send a Big5 message, the challenges are:
1. switch content-type to Big5
2. switch email body to Big5
Problems:
1. default charset set the email header only
2. By enforcing the big5 encodes, an Invalid byte sequence error
appear
3. The error display in Action Mailer, but actually it''s Action
Pack''s
Template Erb bugs!
Solution:
1. set the default charset to Big5.
2. Use Mikel''s email to encode the body (since Tmail shipped with
ActionMail use .erb file which encoding is Utf8. And there is a bundle
of workaround; however all these workaround won''t work in my machine!)
Pending problem:
I don''t know how to set Mikel''s Mail''s
OpenSSL::SSL::VERIFY_NONE, and
I commented that parts in TLS. Any guys know how to set up, please let
me know and I appreciate it a bunch!
Regards,
Arthur
On Dec 9, 2:30 pm, Arthur Ccube
<arthurcc...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
wrote:> Hi Guys,
>
> How can I update the action mailer smtpcharset.
>
> I am using Gmail as my smtp server, and setup the
>
> :default_charset => "big5"
> or
> :charset=> "big5"
>
> Both case sent my mail in utf8.
>
> I want it to be big5 as my EmailToSMS required me to do so.
>
> How to set up thecharset?
>
> Thanks,
> Arthur
--
You received this message because you are subscribed to the Google Groups
"Ruby on Rails: Talk" group.
To post to this group, send email to
rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org
To unsubscribe from this group, send email to
rubyonrails-talk+unsubscribe@googlegroups.com.
For more options, visit this group at
http://groups.google.com/group/rubyonrails-talk?hl=en.