Posted by limbovski on September 3, 2010 at 10:44pm
My site contains a small directory of about 120 clinics. Each clinic has an individual email address added using a custom CCK field. On each clinic page there is a form allowing users to email the clinic. How can I set the recipient based on the current node?
Any help would be great.
Comments
RE: Contact Form
If you print the $node you got all the values of the node from that you get the email address and send the mail.
How is the form embedded? Are
How is the form embedded? Are you using the Forms API? You may be able to load the node in the form so you can access that email address - but I'm not sure without more information. Or perhaps, I think as the poster above is suggesting, making a custom response form from scratch from inside the node template... but that probably isn't as ideal as using the Forms API.