I actually ran into this same thing and it appeared, at least to me, to be
an issue with mailfactory.  The mailfactory gem will encapsulate addresses
in utf-8, which seems to be the issue.  I never had time to work this out
with the current maintainer, so i just send emails out to the plain email
address, which works without issue.
Michael

On Tue, Mar 3, 2009 at 1:18 PM, Paul Carey <[email protected]> wrote:

>
> I hit a snag when trying to set the display name of a mail sender.
>
> If I pass a hash containing
> :from => '"foo" <[email protected]>'
> to Merb::Mailer.new, I'd expect mail clients to display the sender
> name as "foo".
>
> This is indeed what happens if I configure the mailer to use sendmail.
>
> But if I configure the mailer to use tlsmail (as I do in dev), it
> throws a syntax error when it encounters the from field. I can get
> tlsmail to work by escaping the angle brackets
> :from => '"foo" \<[email protected]\>'
>
> But if I do that, mail clients will display the sender as being "foo"
> if sent by tlsmail, but "postie" if sent by sendmail.
>
> I'm not sure where the underlying issue exists, but is there any way
> to set the display name that works with both tlsmail and sendmail?
>
> Thanks
>
> Paul
>
> >
>

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"merb" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [email protected]
For more options, visit this group at http://groups.google.com/group/merb?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to