WordPress contact form without a plugin

Hi thanks for reading,

How would I create a simple contact form with fields containing (fname, lname, telephone, email) thru wordpress using something like phpmailer or wp_mail function to send the emails but without using a PLUGIN.

I saw something about making a contact.php page but I wish to use it as a short code if possible so I can use it on some other pages.

Essentially how contact form 7 works but without using a plugin. (I’t uses a short code for implementation)

Source: wordpress

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.