KAZOO-3157

yes, the rendered subject is a list of binaries and it gave error in
mimemail:encode. i noticed that they changed a lot in here, dealing with
utf-8

On Wed, Nov 26, 2014 at 5:23 AM, James Aimonetti <notifications@github.com>
wrote:

> In applications/teletype/src/teletype_util.erl:
>
> > @@ -332,7 +332,7 @@ render_subject(Template, Macros) -> render(<<"subject">>, Template, Macros).
> >  -spec render(ne_binary(), binary(), wh_proplist()) -> iolist() | 'undefined'.
> >  render(TemplateId, Template, Macros) ->
> >      case teletype_renderer:render(TemplateId, Template, Macros) of
> > -        {'ok', IOData} -> IOData;
> > +        {'ok', IOData} ->  binary_to_list(iolist_to_binary(IOData));
>
> Using an IO-list was fine for sending emails in my testing. I see no
> reason to convert the IO-list to a binary and then to a list. Was there
> something specific not working in your tests?
>
> —
> Reply to this email directly or view it on GitHub
> <https://github.com/2600hz/kazoo/pull/631/files#r20917028>.
>