Mail to from custom field in a post
-
Having seen your tutorial (written for an earlier version of Contact Form 7?), I had a go at creating a contact form that would get its mail to: from a custom field in a post:
I’ve created a contact form [contact-form-7 id=”867″ title=”Dynamic Recipient”] which has a hidden field :
[dynamichidden* dynamichidden-129 “dynamichidden recipient-email "CF7_get_custom_field key=’team_member_email’ obfuscate=’on’"”]
<label> Your Name (required)
[text* your-name] </label><label> Your Email (required)
[email* your-email] </label><label> Subject
[text your-subject] </label><label> Your Message
[textarea your-message] </label>[submit “Send”]
It gets placed in posts (with information about individual team members) with a custom field called team_member_email containing an email address.
Under the mail tab I’ve entered [recipient-email], but it doesn’t seem to like this (it gives a configuration error) because [recipient-email] isn’t an email* field…
What am I doing wrong?!
Thanks
- The topic ‘Mail to from custom field in a post’ is closed to new replies.