We're using a form that sends an e-mail after submitting it. That always works. However, it should also send an e-mail if the post status is changed to published, and that doesn't always work. It does sometimes though... see this video: hidden link
Do you have any information about how the submitted posts are changed to Published?
I can imagine that there is a workflow that is followed where a post is submitted, presumably it is a draft post until it has been reviewed somehow, and then the post is updated to publish it. And perhaps that same workflow is typically followed, and the second email is sent, but there are other ways that the status of the post gets changed to published, and those emails do not get sent.
I'm trying to think of what the difference between the successful scenario and the unsuccessful scenario might be.
According to the client, the procedure is always the same. Someone fills in the form, the post is created as a private post, the first e-mail is sent, that all works as expected. Then the client manually changes the post status to published, which should trigger the second e-mail. That works most of the time, and has worked for years, but lately it doesn't always work anymore...
It is strange that one emails always work and the other is intermittent.
It looks like you use Post SMTP, right? Just as a test, is it possible for you to temporarily switch to a different option such as Easy WP SMTP https://wordpress.org/plugins/easy-wp-smtp/ to see if the issue is fixed?
We've had mailing issues in the past that were fixed by switching to a different SMTP plugin.
It will output the list of 'recipients' for the form notification in question, in the error log. Also, if you see any other errors/warnings related to form notification, please also share them with us.
The topic ‘[Closed] Form doesn't always send second e-mail’ is closed to new replies.