beingyii 0 Posted April 21, 2014 Report Share Posted April 21, 2014 hello everyone.. i have a form to store values for a model add having rows id name description and one is email to store email for particular entry. Now i want a contact form to send mail for that particular model values... that is to send mail to the owner of particular add.. I able to reuse contact form for that purpose but i fail to fetch saved email id for each add so that any viewer can mail for adds.. How to achive this task?? please help me someone.. let me know the how can i do this?? if any example code will be very useful to me.. Thank you..... Quote Link to post Share on other sites
Larry 428 Posted April 24, 2014 Report Share Posted April 24, 2014 If I understand you correctly, you want something in the form that lists the models in order to select to whom the email should go. Then, when the form is submitted, you'd use the selected model ID to retrieve that model and get the email address. Then you'd just send the email. You'd want to create a non-Active Record model to represent the form, too, as in the contact form. Quote Link to post Share on other sites
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.