refinery/refinerycms-inquiries — pull request #136 by pedropaG (2013-12-27 14:18:11+00:00)
Title: Fix from header in mail when utf8 characters are used

When UTF8 characters are used in name or site name, from header is utf8 encoded but quotes are needed or header will be wrong.

Without quotes I get:
=?UTF-8?Q?Pedro_ [Ib=C3=A9rica_de_Sales_S.A.] _ ,
?=@programatica.es

With quotes I get:
=?UTF-8?B?cGl0ZXIgW0liw6lyaWNhIGRlIFNhbGVzIFMuQS5d?=

In 2.0 it worked because it was quoted like this:
"\"#{Refinery::Core.site_name}\" "