Support » Plugin: WP Mail Logging » Plugin isn’t logging cron mail functions

  • Resolved Liam McArthur

    (@liammcarthur)


    I’ve written a plugin that sends out emails to customers via a cron, but I’ve noticed that this plugin isn’t logging them particular emails, but is logging everything else. Is this normal behaviour? Is there no way of being able to log mail sent via the cronjob function?

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author No3x

    (@no3x)

    Hi @liammcarthur,

    but I’ve noticed that this plugin isn’t logging them particular emails, but is logging everything else.

    that’s pretty clear if your plugin sends before WP Mail Logging has hooked to the wp_mail action. Please check that your plugin sends after this.

    Please let me know if this points you in the right direction.

    But my plugin is using the wp_mail function. I’m not using a custom mail function.

    • This reply was modified 1 year, 2 months ago by  Liam McArthur.
    Plugin Author No3x

    (@no3x)

    Of course it must use the wp_mail function to be logged at all. But the point is: when do you send the mails? (which hook)

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Plugin isn’t logging cron mail functions’ is closed to new replies.