Skip Navigation

[Resolved] Sending an email from Cred form to an email address stored in a Custom Post

This support ticket is created 2 years, 10 months ago. There's a good chance that you are reading advice that it now obsolete.

This is the technical support forum for Toolset - a suite of plugins for developing WordPress sites without writing PHP.

Everyone can read this forum, but only Toolset clients can post in it. Toolset support works 6 days per week, 19 hours per day.

Sun Mon Tue Wed Thu Fri Sat
- 9:00 – 12:00 9:00 – 12:00 9:00 – 12:00 9:00 – 12:00 9:00 – 12:00 -
- 13:00 – 18:00 13:00 – 18:00 13:00 – 18:00 14:00 – 18:00 13:00 – 18:00 -

Supporter timezone: America/Jamaica (GMT-05:00)

This topic contains 2 replies, has 2 voices.

Last updated by jimH-3 2 years, 10 months ago.

Assisted by: Shane.

Author
Posts
#2328733

Tell us what you are trying to do?
I'm trying to have the notification from a submitted Cred Form go to an address that is stored in a custom post type. The Cred form is included in the content template of the custom post type.

I have a site that has custom post types of real estate property. On each property, there is a field that stores a valid email address. The content template for the property post includes a cred form for contacting the seller of the property. On this contact form, I collect basic contact information and when the form is submitted, I need the form to be sent to an email that is stored in the property custom post.

Is there any documentation that you are following?
I have found several things, but nothing like what I need to do.

Is there a similar example that we can see?
I have not found one yet

What is the link to your site?

#2328827

Shane
Supporter

Languages: English (English )

Timezone: America/Jamaica (GMT-05:00)

Hi Jim,

Thank you for getting in touch.

Is there a particular post type that this contact form is tied to ? Also does the contact form have an email field to hold the Property listing email ?

If it does then we can use a shortcode to provide the value for this email custom field then trigger the email to this custom field on the form.

Essentially you will have a recipient email field on the form and hide this field. Then you will pass the current post email into the form by setting the value of the email field to [types field='email'][/types] where 'email' is the slug of the email field on your property.

Thanks,
Shane

#2330513

My issue is resolved now. Thank you!