Take the 2-minute tour ×
WordPress Development Stack Exchange is a question and answer site for WordPress developers and administrators. It's 100% free, no registration required.

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?

share|improve this question

1 Answer 1

up vote 3 down vote accepted

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.

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

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