WordPress.org

Support

Support » How-To and Troubleshooting » Call to undefined function wp_mail

Call to undefined function wp_mail

  • 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?

Viewing 1 replies (of 1 total)
  • 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' );

Viewing 1 replies (of 1 total)
  • The topic ‘Call to undefined function wp_mail’ is closed to new replies.