[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.
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.
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.
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.
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?
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?
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?