Skip Navigation

[Resolved] How to setup general CRED email notification template

This support ticket is created 7 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
- - 14:00 – 20:00 14:00 – 20:00 14:00 – 20:00 14:00 – 20:00 14:00 – 20:00
- - - - - - -

Supporter timezone: Asia/Ho_Chi_Minh (GMT+07:00)

Tagged: 

This topic contains 6 replies, has 3 voices.

Last updated by Luo Yang 7 years, 4 months ago.

Assisted by: Beda.

Author
Posts
#543722

I am trying to find documentation on how to set up a HTML CRED notification email template that would be applied to all CRED forms.
I need to define the HTML head for responsive emails and a footer.

#543728

It is not possible.
Notifications are setup for each CRED Form separately

You can use a Hook thou, to modify the header and more:
https://toolset.com/documentation/programmer-reference/cred-api/#cred_mail_header

Ist that what you where looking for?

#544238

Hi Beda 🙂

1.
I looked at that Hook but I'm not sure if I can use it to add code <head></head> section to it?
2.
Does the Hook always require a certain form ID or can I omit that and it will be applied to all forms?
3.
The description of the Hook says, quote; Please note that there are a lot of headers you can set (see the comprehensive message headers list here) - but there is no link to read more about it.
4.
If it is possible to set the email <head></head> section of the email with that hook, wouldn't it then be possible to create one content template "email-start" (return it raw, have function for that already setup) and one content template "email-end" and use that for all CRED emails.
5.
Or if content templates in CRED notifications is not possible can I create my own custom shortcode in functions.php so the structure would be;
My own cred_mail_header filter in functions.php
In CRED notification:
[email-start]
any text
[email-end]

Or any other suggestion?

#544618

1. The CRED hook hooks into the Head of the email, not the the Body.
So, you cannot add head tags in the hook as it already hooks in the head of the email.

2. The CRED Hook accepts ID's, if not passed it will apply to all the Forms.

3. That Link is missing, and our DOC Author is not here today (4th of July)
I will update you tomorrow with the correct link of the list

4. The Header of an Email is not created with Content Templates but with a set of message headers.
Things like Reply-To, and so on.
This cannot be added to a Content Template.

5. There is a Feature Request filed to allow Content Template similar design of the Email Body, but we will not add this for headers or footers.

#545153

Ok, understood,
I would like to forward this as an important feature request, add a +1 vote for me on the existing feature request 🙂

Can you direct me to WordPress documentation on how to create site wide email templates for wp_mail().
(I will create my custom notifications instead)
Can't find my way on the WP site. Probably searching for the wrong thing ...

#545472

hidden link

Or Plugins:
https://wordpress.org/plugins/email-templates/

For CRED; I will let Luo answer here, he is the CRED Feature Request chief.

Thanks for your patience.

#545478

Dear Tina,

It has been filed as a feature request, our developers will evaluate it. but there isn't any ETA for it.