• Resolved LiamMcArthur

    (@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)
  • 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.

    Thread Starter LiamMcArthur

    (@liammcarthur)

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

    • This reply was modified 7 years, 2 months ago by LiamMcArthur.

    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.