Viewing 6 replies - 1 through 6 (of 6 total)
  • Plugin Author Sudar Muthu

    (@sudar)

    I am confused as well 🙂

    Which plugin are you using to send the emails through the contact form? Also are you using any email gateways like Mandrill?

    Thread Starter Ovidiu

    (@ovidiu)

    the contact form isn’t a plugin but part of the theme comes as a page template. no gateways in use, simply php mail.

    page template, if that helps? => http://pastebin.com/1MBwXVSQ
    Can you spot any reason why these emails won’t be logged by your plugin?

    Plugin Author Sudar Muthu

    (@sudar)

    I think I found the issue. My plugin only log the email if it is sent using WordPress’s wp_mail function. In the code that you pasted it using using mail function.

    So change mail to wp_mail on line number 78 and my plugin should start to log emails that are sent.

    Thread Starter Ovidiu

    (@ovidiu)

    I stopped using that template and implemented a separate contact form meanwhile 🙂

    maybe you can add that function to the next version of your plugin so it logs both?
    thanks for taking the time to look at it!

    Plugin Author Sudar Muthu

    (@sudar)

    Glad that you got it working.

    Unfortunately my code depends on the WordPress actions and filters and if mail function is used instead of wp_mail the WordPress filter will not be invoked. So there is no way for me to log the email 🙁

    Thread Starter Ovidiu

    (@ovidiu)

    pity, but thanks for the advice, might come in handy if I encounter this issue again someday.

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘Doesn't seem to log emails from my contact form’ is closed to new replies.