def thanks_messagemail to: user.email, subject: "Thank you.", from: current_user.email
examplemail(:to => user.email, :subject => "Thank you.", :from => "a...@gmail.com")Would you happen to be using Devise? If so, there is a current_user helper for accessing the user that is currently logged in.def thanks_messagemail to: user.email, subject: "Thank you.", from: current_user.emailend
--To view this discussion on the web visit https://groups.google.com/d/msgid/rubyonrails-talk/f9be9988-32ac-4ba2-9b60-e5a8e2dd83f9%40googlegroups.com.
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-ta...@googlegroups.com.
To post to this group, send email to rubyonra...@googlegroups.com.