Ruby on Rails
Monday, July 24, 2017
I am using the action mailer, and i want to reply the email, below piece of code using
user_mailer.rb
user_mailer.rb
def send_mail_agent(user)
@user = user
mail(:to=> user.email, :reply_to => user.email)
end views/user_mailer/send_mail_agent.html.erb<%= @user.fullname %>
But it send the new email not reply to the actual email
How i reply the email ????
You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.
To unsubscribe from this group and stop receiving emails from it, send an email to rubyonrails-talk+unsubscribe@googlegroups.com.
To post to this group, send email to rubyonrails-talk@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/rubyonrails-talk/3298d07d-2169-4c5a-bf85-0404a6ae7188%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment