WordPress.org

Forums

Call to undefined function wp_mail (2 posts)

  1. franticnomad
    Member
    Posted 3 years ago #

    trying to use wp_mail function in a form processing script to send mail with an attachment. without attachment php mail() works just fine, but I'm getting a "call to undefined function wp_mail in..." error msg. Any ideas?

  2. webdevbytes
    Member
    Posted 3 years ago #

    I came across the same issue while using wp_mail() in an ajax function.
    Make sure to activate the hook with :

    do_action( 'wp_ajax_my_ajax_action' );

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags