Skip Navigation

[Resolved] Unable to send email with trigger – when post is published

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

Our next available supporter will start replying to tickets in about 2.43 hours from now. 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)

This topic contains 10 replies, has 2 voices.

Last updated by himanshuS 3 years, 10 months ago.

Assisted by: Minesh.

Author
Posts
#1890147
endorser email.png

I want to send an email with data from the parent post after child post is published. I am using the email trigger on publish functionality but nothing happens.

The email works just fine if I select send email on submit trigger.

#1891369

Minesh
Supporter

Languages: English (English )

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

Hello. Thank you for contacting the Toolset support.

Can you please confirm what fields you want to add to your email notification (only parent post fields?) and where you added the form?

Can you please share all those required details with access details and I would be happy to check whats going wrong with your setup.

*** Please make a FULL BACKUP of your database and website.***
I would also eventually need to request temporary access (WP-Admin and FTP) to your site. Preferably to a test site where the problem has been replicated if possible in order to be of better help and check if some configurations might need to be changed.

I have set the next reply to private which means only you and I have access to it.

#1892051

Minesh
Supporter

Languages: English (English )

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

Can you please share URL of the page where you added the frotnend form as well as how you are passing the parent author email endorser email. Please share frontend link with params you pass.

#1893443
#1893771

Minesh
Supporter

Languages: English (English )

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

When I try to access the wp-admin, it redirect me to wordpress.com, Can you please make sure I should be able to login to your site using the access details you shared.

#1894047

It should work now. Please check.

#1894993

Minesh
Supporter

Languages: English (English )

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

I checked the form you shared: hidden link

And I see the status of the post is set to published for that form.

I see that you have setup a email notification "Notification to the Endorser" that is set to trigger when publishing the post, at what action you want to trigger this email notification? when user submit the form and post becomes published? if yes: why dont you use the submit email notification trigger?

#1895107

When the endorser receives a link, the post is not published. It does not exist yet. When the endorser submits the form in the link mentioned earlier, the post publishes. I want to send an email to the endorser when the post is published after submitting the form.

Isn't that what that trigger called 'when post status changes to ... publish' does?

I could use the 'when form submits' trigger' but what if the post does not publish for some reason and endorser gets a message that it's all good. In case it is not published, endorser should try again to publish.

I hope that's helpful.

#1896111

Minesh
Supporter

Languages: English (English )

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

When the endorser receives a link, the post is not published. It does not exist yet. When the endorser submits the form in the link mentioned earlier, the post publishes. I want to send an email to the endorser when the post is published after submitting the form.
==>
I suggest, you should set the notification of Submit and you will have the same result. Can you please do that as when you submit the form post is created and post status is assigned as published not changed.

The post status change should be applicable when, lets say you have a post as pending or draft, and then you change the post status to publish.

#1896353

I see. Thank you for the clarification, Minesh. My issue is resolved.

#1896357

My issue is resolved now. Thank you!