I am creating a premium theme that includes a Contact page template. Currently, I am using the wp_mail() function to send the contact email to the administrator-specified email address.

Basically, I am wondering if the wp_mail() function is the best/expected choice for implementing email functionality in a premium WordPress theme? If it is not, what would be the better option?

1 Answer 1


Yes, you should use wp_mail(). There is no difference between a premium theme and a regular theme in this point. wp_mail() has many advantages and your clients will rely on it. If you break it, many plugins will not work anymore.

Besides that, it is not the job of a theme to change this functionality. There are plugins to replace the function.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.