Title: Send email programmaticaly
Last modified: June 27, 2020

---

# Send email programmaticaly

 *  Resolved [stefanomaxis](https://wordpress.org/support/users/stefanomaxis/)
 * (@stefanomaxis)
 * [5 years, 11 months ago](https://wordpress.org/support/topic/send-email-programmaticaly/)
 * Hi, is it possible to call any function to send email? I’ve my own rest API and
   when I’m called, I want to send email.
 * Thanks

Viewing 1 replies (of 1 total)

 *  Plugin Author [Hannes Etzelstorfer](https://wordpress.org/support/users/haet/)
 * (@haet)
 * [5 years, 11 months ago](https://wordpress.org/support/topic/send-email-programmaticaly/#post-13043784)
 * Hey [@stefanomaxis](https://wordpress.org/support/users/stefanomaxis/)
    Just 
   use WordPress own wp_mail() function. The template is applied automatically. 
   But please don’t forget to set the text/HTML header if you use HTML formatting
   in your email. Best regards, Hannes

Viewing 1 replies (of 1 total)

The topic ‘Send email programmaticaly’ is closed to new replies.

 * ![](https://ps.w.org/wp-html-mail/assets/icon-256x256.png?rev=1730334)
 * [Email Template Designer - WP HTML Mail](https://wordpress.org/plugins/wp-html-mail/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/wp-html-mail/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/wp-html-mail/)
 * [Active Topics](https://wordpress.org/support/plugin/wp-html-mail/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/wp-html-mail/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/wp-html-mail/reviews/)

 * 1 reply
 * 2 participants
 * Last reply from: [Hannes Etzelstorfer](https://wordpress.org/support/users/haet/)
 * Last activity: [5 years, 11 months ago](https://wordpress.org/support/topic/send-email-programmaticaly/#post-13043784)
 * Status: resolved