• Resolved bbuerger

    (@bbuerger)


    Hi,

    I created a trigger to fire on publish post and send a mail. It fired ok but the sending result was “Not sent”. It states: If sending result is “Not sent” you need to check if your server’s wp_mail() function is correctly configured.

    I do receive mails from my contact form. Still I installed Check & Log Email. I received the test mail. So WP does send mails.

    After that I tried to get an error message using wp_mail_failed action hook. But I never got there because the trigger does not fire anymore. I removed the hook just to be sure there is no error there. Still the trigger does not fire. It did twice, times per user and total times are set to 0, not error messages.

    What can I do?

Viewing 4 replies - 1 through 4 (of 4 total)
  • Thread Starter bbuerger

    (@bbuerger)

    I changed the trigger setting to “user publishes … 20 times” with automation settings being still 0/0. After that the trigger fired but the automation did not start and no mail was tried to send and I have only got one log entry instead of three.

    Plugin Contributor Paco González Pérez

    (@pacogon)

    I would be more than happy to assist you today.

    I just did a test and it works perfectly sending emails. https://imgur.com/a/30vu2TQ

    Sending emails is not handled by AutomatorWP but by your email server, so this is something you will have to check with your email provider.
    So you have to set up an email account on your server or you can also use a SMPT plugin.

    Have you filled in the required fields in the email form?

    Referring to 20 times, what this does is it requires that the trigger has to be completed 20 times, until it is completed 20 times it will not reward.

    So to make sure you do a clean test, you can go to the logs and delete all the logs (AutomatorWP->Logs).

    Hope it helps!

    Thread Starter bbuerger

    (@bbuerger)

    Thank you for your reply.

    I did some more tests. Here is the solution:

    The id to post_content in the message body was wrong due to copy/paste. So even if all required fields where filled this resulted in an empty message body which resulted in the mail not being sent. The mail account had nothing to do with this.

    The error message was simply misleading. When I installed an SMPT plugin I got a readable error message which lead to the solution.

    And with a new automation the trigger works again.

    So for the moment everything works as expected.

    Plugin Contributor Paco González Pérez

    (@pacogon)

    Hi @bbuerger!

    Glad to hear it’s already working for you.
    If you have any other questions you can contact me here or by opening a ticket through this link. https://automatorwp.com/contact-us/

    Have a great week! ??

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘E-Mails not sent and trigger does not fire anymore’ is closed to new replies.