Skip Navigation

[Resolved] Can CRED send emails to an email address which depends on the form contents?

This support ticket is created 8 years, 4 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.

No supporters are available to work today on Toolset forum. Feel free to create tickets and we will handle it as soon as we are online. Thank you for your understanding.

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

Supporter timezone: Asia/Kolkata (GMT+05:30)

Tagged: 

This topic contains 1 reply, has 2 voices.

Last updated by Minesh 8 years, 4 months ago.

Assisted by: Minesh.

Author
Posts
#357432

I'd like to make a user form which sends an email to an address which depends on the contents of the form.
e.g.
If field 1 is A and field 2 is B then send an email including some field contents to email addresses W and Z
If field 1 is A and field 2 is C then send an email including some field contents to email addresses X and Z
If field 1 is D and field 2 is E then send an email including some field contents to email addresses Y and Z
etc.

I haven't started using CRED yet- I'm trying to find out if it is suitable for the task. Would elaborate custom coding be required?

#357491

Minesh
Supporter

Languages: English (English )

Timezone: Asia/Kolkata (GMT+05:30)

Hello. Thank you for contacting the Toolset support.

Please find following documentation that lists all you can do with CRED email notifications:
=> https://toolset.com/documentation/user-guides/automated-email-notifications-with-cred/

However, you case is not covered by using default CRED function, as you said it will require custom coding, so you may try to use CRED hook 'cred-save_data' where you can check your fields and apply conditions and write your email code.
=> https://toolset.com/documentation/user-guides/cred-api/#csd

This ticket is now closed. If you're a WPML client and need related help, please open a new support ticket.