How can i pass two users (@to_whom and @from_whom) to a mailer from the controller. I have only been able to get one passed, e.g.:
UserMailer.invitation_email(@to_whom).deliver
Thanks.
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
You can pass multiple parameters:
Just make sure your
invitation_emailmethod is set up to accept all the parameters: