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 -~----------~----~----~----~------~----~------~--~---
