Skip Navigation

[Resolved] It does not send notifications when the title is not CRED Auto Draft

The Toolset Community Forum is closed, for technical support questions, please head on to our Toolset Professional Support (for paid clients), with any pre-sale or admin question please contact us here.

This thread is resolved. Here is a description of the problem and solution.

Problem:

There is a CRED form for creating post, after user submit the CRED form, it does not send Email notifications

Solution:

This is a Email problem. 1) Edit the CRED form, in section "E-mail Notifications", enable option "Send notification to a specific email address:", fill your own gmail address

And test it again.

Relevant Documentation:

https://toolset.com/documentation/user-guides/automated-email-notifications-with-cred/

This support ticket is created 6 years, 10 months ago. There's a good chance that you are reading advice that it now obsolete.
This is the community support forum for Types plugin, which is part of Toolset. Toolset is a suite of plugins for developing WordPress sites without writing PHP.

Everyone can read this forum, but only Toolset clients and people who registered for Types community support can post in it.

Sun Mon Tue Wed Thu Fri Sat
- 9:00 – 13:00 9:00 – 13:00 9:00 – 13:00 9:00 – 13:00 9: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/Hong_Kong (GMT+08:00)

Tagged: 

This topic contains 9 replies, has 2 voices.

Last updated by Luo Yang 6 years, 10 months ago.

Assisted by: Luo Yang.

Author
Posts
#610570

We use the following code to save the project with the title "Project xxx".

In this case, you do not send notifications when you save the "Projects" cred form with the "New Project" menu name

//GUARDA PROYECTO AUTO
add_action('cred_save_data', 'my_custom_save_data_action', 10, 2);
function my_custom_save_data_action( $post_id, $form_data ){
    // if a specific formt
    if ($form_data['id']==183) {
	$title = date('ymdhis');
	$title = "Proyecto ".$post_id;
        $slug = sanitize_title($title);
        wp_update_post(array('ID' => $post_id, 'post_title' => $title, 'post_name' => $title));
    }
}
#610959

Dear Carmen,

What kind of notifications do you want to send with CRED form?
If it is Email notification, I checked the CRED form "Proyectos" (ID:183) in your website, there isn't any Email notification setting in it, please follow our document to setup the email notifications:
https://toolset.com/documentation/user-guides/automated-email-notifications-with-cred/
Automated Email Notifications With CRED

#610970

Hello,
Maybe I eliminated it yesterday by doing tests.
Notification is already activated and it still does not work.
Can you verify it now? Thank you

#610994

It is abnormal, you can check these:
1) Remove the custom PHP codes you mentioned above, test the CRED form again, check if it works
If it still does not work, it should not a problem related with your custom PHP codes, it might be a compatibility problem or server problem, please check below

2) deactivate other plugins and switch to wordpress default theme, and test again

3) If the problem still persists, please provide a database dump file (ZIP file) of your website in below private detail box, I need to test and debug it in my localhost, thanks

#611014
#611256

Thanks for the details, I am downloading the file, will feedback if there is anything found

#611275

I can import your database dump file in my localhost, here are what I found:
1) Without the custom PHP codes you mentioned above:
https://toolset.com/forums/topic/it-does-not-send-notifications-when-the-title-is-not-cred-auto-draft/#post-610570
After submit the CRED form, it does send the Email, for example:

mail to: Array ( [0] => crea@crearedes.com ) 
mail subject: CRED Auto Draft 837ec5754f503cfaaee0929fd48974e7
mail body:
CRED Auto Draft 837ec5754f503cfaaee0929fd48974e7

<em><u>hidden link</u></em>

2) Without the custom PHP codes, after submit the CRED form, it does send the Email, for example:

mail to:Array ( [0] => crea@crearedes.com ) 
mail subject:Proyecto 455
mail body:
Proyecto 455

<em><u>hidden link</u></em>

So it should be a compatibility problem or server problem in your website, since the problem only exists in your website, I will need to debug in your website: deactivate plugins and switch themes, please make a full backup of your website, then update this thread.

#611289

Backup made.
Feel free to perform the necessary tests and changes.
The project is in the initial phase and the current content is not endangered.
Thank you.

#611322
cred-email.JPG

Here are what I found, I tried these:
1) Edit the CRED form "Proyectos":
in section "E-mail Notifications", enable option "Send notification to a specific email address:", fill my own email address
2) Put the CRED form in a new page:
hidden link
And test it again, I can get the email in my Google email box, but it is marked as "spam" status, see screenshot:
cred-email.JPG

I suggest you check these:
1) Make sure the email address you filled in option "Send notification to a WordPress user" is valid: crea@creare***.com
2) Submit the CRED form, check the email in the spam box.

#611395

It seems that the problem is only with my user (fernando), I have tested with other users and it actually works.

Thanks and I close the ticket

#611607

You are welcome

The forum ‘Types Community Support’ is closed to new topics and replies.