Hi all, I am using action mailer to send mail,in that i want one option called reply_to if i put @reply_to=''mes-+CiP5Gn4JFw@public.gmane.org'',..it is not working...how to put reply to.If anyone knows help me -- Posted via http://www.ruby-forum.com/. --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
Shiva Kumaran wrote:> Hi all, > I am using action mailer to send mail,in that i want one option > called reply_to > > if i put @reply_to=''mes-+CiP5Gn4JFw@public.gmane.org'',..it is not working...how to put reply > to.If anyone knows help meyou can add any header to the email you want, by using "header". check out http://caboo.se/doc/classes/ActionMailer/Base.html you can do something like the below. i''d make sure though, that the header you determine will go along with the conventional header (i belive it is Reply-to and not reply_to). class Notifier < ActionMailer::Base def signup_notification(recipient) recipients recipient.email_address_with_name from "system-hcDgGtZH8xNBDgjK7y7TUQ@public.gmane.org" subject "New account information" body :account => recipient headers ''Reply-to'' => ''me-Ci8s715QZMM@public.gmane.org'' end end HTH .. -- Posted via http://www.ruby-forum.com/. --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
Thanks shai Its working now.Thanks for ur help. Shai Rosenfeld wrote:> Shiva Kumaran wrote: >> Hi all, >> I am using action mailer to send mail,in that i want one option >> called reply_to >> >> if i put @reply_to=''mes-+CiP5Gn4JFw@public.gmane.org'',..it is not working...how to put reply >> to.If anyone knows help me > > you can add any header to the email you want, by using "header". > > check out > > http://caboo.se/doc/classes/ActionMailer/Base.html > > you can do something like the below. i''d make sure though, that the > header you determine will go along with the conventional header (i > belive it is Reply-to and not reply_to). > > > class Notifier < ActionMailer::Base > def signup_notification(recipient) > recipients recipient.email_address_with_name > from "system-hcDgGtZH8xNBDgjK7y7TUQ@public.gmane.org" > subject "New account information" > body :account => recipient > > headers ''Reply-to'' => ''me-Ci8s715QZMM@public.gmane.org'' > > end > end > > HTH ..-- Posted via http://www.ruby-forum.com/. --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---