I am trying to include the persons name as well as email in the reply- to field of the email header. In the process, I''m seeing some weird behavior: You can set the from address: @from = "Persons Name <persons email>" But if you use the same convention for reply-to: @headers[''Reply-To''] = "Persons Name <persons email>" At some point the header gets parsed and the name is removed. I''ve found that you can do : @headers[''Reply-To''] = "''Persons Name'' <persons email>" But I''m not sure that the single quotes are up to standard in the email header. Thanks for the help! Tom --~--~---------~--~----~------------~-------~--~----~ 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-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---
ESPNDev-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org
2008-Apr-08 22:26 UTC
Re: ActionMailer Reply-To Header
"''Persons Name'' <persons email>" is valid. Was that not working for you? On Apr 8, 12:58 pm, TomRossi7 <t...-5bxIUPmzHicFraO2wh7vUA@public.gmane.org> wrote:> I am trying to include the persons name as well as email in the reply- > to field of the email header. In the process, I''m seeing some weird > behavior: > > You can set the from address: > @from = "Persons Name <persons email>" > > But if you use the same convention for reply-to: > @headers[''Reply-To''] = "Persons Name <persons email>" > > At some point the header gets parsed and the name is removed. > > I''ve found that you can do : > @headers[''Reply-To''] = "''Persons Name'' <persons email>" > > But I''m not sure that the single quotes are up to standard in the > email header. > > Thanks for the help! > Tom--~--~---------~--~----~------------~-------~--~----~ 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-/JYPxA39Uh5TLH3MbocFFw@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 -~----------~----~----~----~------~----~------~--~---
I believe it will work, but it isn''t consistent. I was hoping someone understood how ActionMailer is parsing those fields... On Apr 8, 6:26 pm, "ESPN...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org" <ESPN3.DL- Community...-xX8xgfAcNKEAvxtiuMwx3w@public.gmane.org> wrote:> "''Persons Name'' <persons email>" is valid. Was that not working for > you? > > On Apr 8, 12:58 pm,TomRossi7<t...-5bxIUPmzHicFraO2wh7vUA@public.gmane.org> wrote: > > > I am trying to include the persons name as well as email in the reply- > > to field of the email header. In the process, I''m seeing some weird > > behavior: > > > You can set the from address: > > @from = "Persons Name <persons email>" > > > But if you use the same convention for reply-to: > > @headers[''Reply-To''] = "Persons Name <persons email>" > > > At some point the header gets parsed and the name is removed. > > > I''ve found that you can do : > > @headers[''Reply-To''] = "''Persons Name'' <persons email>" > > > But I''m not sure that the single quotes are up to standard in the > > email header. > > > Thanks for the help! > > Tom--~--~---------~--~----~------------~-------~--~----~ 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-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---
Well, this has come back to bite me. Apparently, not all mail clients work with that format. I guess the bottom line is how do you set the reply-to address? @headers["Reply-To"] = "Persons Name <persons email>" Will work but it will remove the person''s name. Shouldn''t it get parsed the same as: @from = "Persons Name <persons email>" Thanks, Tom On Apr 8, 6:26 pm, "ESPN...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org" <ESPN3.DL- Community...-xX8xgfAcNKEAvxtiuMwx3w@public.gmane.org> wrote:> "''Persons Name'' <persons email>" is valid. Was that not working for > you? > > On Apr 8, 12:58 pm, TomRossi7 <t...-5bxIUPmzHicFraO2wh7vUA@public.gmane.org> wrote: > > > I am trying to include the persons name as well as email in thereply- > > to field of the emailheader. In the process, I''m seeing some weird > > behavior: > > > You can set the from address: > > @from = "Persons Name <persons email>" > > > But if you use the same convention forreply-to: > > @headers[''Reply-To''] = "Persons Name <persons email>" > > > At some point theheadergets parsed and the name is removed. > > > I''ve found that you can do : > > @headers[''Reply-To''] = "''Persons Name'' <persons email>" > > > But I''m not sure that the single quotes are up to standard in the > > emailheader. > > > Thanks for the help! > >Tom--~--~---------~--~----~------------~-------~--~----~ 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-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---