PLEASE NOTE: These forums are no longer utilized and are provided as an archive for informational purposes only. All support issues will be handled via email using our support ticket system. For more detailed information on this change, please see this blog post.

Email from custom field in notification email

  1. mcdarwin
    Member

    Hi,

    I run a directory where each company is listed on a separate post.

    Now I would like to put a form on several different posts, and when the form is submitted a notification must be sent both to me and to the company listed on that post. I have the emailaddress for each company in a custom field for that post.

    I could of course make a bunch of different forms and put them on each post. But if I could somehow use the emailaddress from the custom field in each post I would only need one form. So what would be the easiest way or a good way to complish that?

    Thanks...

    Mcdarwin

    Posted 12 years ago on Wednesday May 4, 2011 | Permalink
  2. Hi McDarwin,

    Here is some code from a previous project where I used the same contact form on each doctor's profile page. The "to" address was updated based on which doctor was currently being viewed.

    http://pastie.org/1864549

    Posted 12 years ago on Wednesday May 4, 2011 | Permalink