Skip Navigation

[Résolu] Email Notifications & Post Status ‘Private’

Ce fil est résolu. Voici une description du problème et la solution proposée.

Problem:

I have a post with status Private, the edit form is set to change the status to Pending & send the post author an email but the email isn't being sent (my SMTP error log returns SMTP ERROR: QUIT command failed: 354). If I change the post status to Publish, Draft or Pending, the email is sent when the edit form is submitted.

Is this expected behaviour?

Solution:

According to our document:

https://toolset.com/documentation/user-guides/automatic-post-expiration/#sending-email-notifications-when-posts-expire

The expiration email notifications will be sent according to your form setting:

"before the automatic expiration date"

See screenshot:

https://cdn.toolset.com/wp-content/uploads/2014/08/cred-post-expiration-notification-options-1.png?x21858

So even the post is in "Private" status, the email will be send after the time setting.

Relevant Documentation:

https://toolset.com/documentation/user-guides/automatic-post-expiration/#sending-email-notifications-when-posts-expire

This support ticket is created Il y a 6 années et 2 mois. 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.

Aucun de nos assistants n'est disponible aujourd'hui sur le forum Jeu d'outils. Veuillez créer un ticket, et nous nous le traiterons dès notre prochaine connexion. Merci de votre compréhension.

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)

Ce sujet contient 7 réponses, a 3 voix.

Dernière mise à jour par julieP Il y a 6 années et 2 mois.

Assisté par: Luo Yang.

Auteur
Publications
#1103645

I have a post with status Private, the edit form is set to change the status to Pending & send the post author an email but the email isn't being sent (my SMTP error log returns SMTP ERROR: QUIT command failed: 354). If I change the post status to Publish, Draft or Pending, the email is sent when the edit form is submitted.

Is this expected behaviour?

Please note: I'm not experiencing any issues with my email service; this is definitely connected with the Private post status.

#1104603

Minesh
Supporter

Les langues: Anglais (English )

Fuseau horaire: Asia/Kolkata (GMT+05:30)

Hello. Thank you for contacting the Toolset support.

Wel - can I see how your edit form is setup so I can check with my test site.

Could you please share yoru Edit for URL and access details.

*** 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 would additionally need your permission to de- and re-activate Plugins and the Theme, and to change configurations on the site. This is also a reason the backup is really important. If you agree to this, please use the form fields I have enabled below to provide temporary access details (wp-admin and FTP).

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

#1105300

Hi Minesh

This is on a locked down test site so I can't provide access.

If this behaviour i expected nothing more is required. if it's not expected then I'll need to create a clone site for you so I'd appreciate an answer to my original question before I do all that extra work. If a clone is required, can you work with a database dump and files dump rather than a Duplicator file?

Thanks

#1105515

Minesh
Supporter

Les langues: Anglais (English )

Fuseau horaire: Asia/Kolkata (GMT+05:30)

Please allow me to test this and once I see some results I will get in touch with you as soon as possible.

#1106691

Minesh
Supporter

Les langues: Anglais (English )

Fuseau horaire: Asia/Kolkata (GMT+05:30)

Well - I need to confirm here when you say:


I have a post with status Private

Do you mean that you have parent and child post relationship with your posttypes and the Edit post (child-form) form is added to parent post? OR you mean that you have a page that is set as the private page where you added the Edit form?

OR

The post entry you are editing using the Edit form is already set private and you offer options to user to change it to Pending?

#1108108

Hi Minesh,

Sort of the last one. I re-read my original ticket just now and realised it wasn't as clear as it could have been (sorry). Let me explain a little more....

This is a custom post with no relationships but it has expiry set. When it first expires, the post status doesn't change but the user is prompted (via a notification on the create version of the form) to submit an edit version of the form which sets the post to expire 30 days later and send Site Admin an email just before expiry. A (submit complete) hook is also fired to change the post status to Private.

My question is; is it expected that the email just before the second expiry is sent to Site Admin even though the post status is Private?

#1108171

Hello,

According to our document:
https://toolset.com/documentation/user-guides/automatic-post-expiration/#sending-email-notifications-when-posts-expire

The expiration email notifications will be sent according to your form setting:
"before the automatic expiration date"

See screenshot:
lien caché

So even the post is in "Private" status, the email will be send after the time setting.

#1108192

Ok thank you for clarifying; I'm not sure if there's an issue or whether my form's not set up quite right. I'll re-open if necessary.