Title: Question about syntax in WordPress
Last modified: October 4, 2021

---

# Question about syntax in WordPress

 *  [tu586](https://wordpress.org/support/users/tu586/)
 * (@tu586)
 * [4 years, 8 months ago](https://wordpress.org/support/topic/question-about-syntax-in-wordpress/)
 * What is the difference on the WordPress syntax and php?
 * I was looking into how to send email and get “post” data in php to send an email,
   and apparently WordPress information is very similar but instead of using mail(),
   wordpress uses wp_mail()
 * Could I just write the code in php and html and stick it in the plugin folder?
 * I understand WordPress is written in php? correct?
 * Why the use of the wp_ when referencing the wordpress code?
 * The page I need help with: _[[log in](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fwordpress.org%2Fsupport%2Ftopic%2Fquestion-about-syntax-in-wordpress%2F%3Foutput_format%3Dmd&locale=en_US)
   to see the link]_

Viewing 1 replies (of 1 total)

 *  [corrinarusso](https://wordpress.org/support/users/corrinarusso/)
 * (@corrinarusso)
 * [4 years, 8 months ago](https://wordpress.org/support/topic/question-about-syntax-in-wordpress/#post-14937329)
 * > Could I just write the code in php and html and stick it in the plugin folder?
 * Sure you could.
 * > Why the use of the wp_ when referencing the wordpress code?
 * wp_mail is a wrapper, and you want to use it bc you want to be using the framwork
   for best practices, extensibility, scalability and security. Plugins and themes
   will use the wrapper as a hook to provide compatibilty.
 * You do have other options – but stay within the framework:
    [https://www.wpbeginner.com/plugins/how-to-set-up-wp-mail-smtp-with-any-host-ultimate-guide/](https://www.wpbeginner.com/plugins/how-to-set-up-wp-mail-smtp-with-any-host-ultimate-guide/)

Viewing 1 replies (of 1 total)

The topic ‘Question about syntax in WordPress’ is closed to new replies.

## Tags

 * [code](https://wordpress.org/support/topic-tag/code/)

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 1 reply
 * 2 participants
 * Last reply from: [corrinarusso](https://wordpress.org/support/users/corrinarusso/)
 * Last activity: [4 years, 8 months ago](https://wordpress.org/support/topic/question-about-syntax-in-wordpress/#post-14937329)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
