I’m propably going to need to use some form of Ajax here. But i’m pretty new to the Ajax usage withing WordPress.

It is about the following. I have a WordPress contact form that uses Bootstrap Validator and some Javascript to have a nice feel to it. I used the contact from from codepen and i made a Fork with my adjustments :

Since i want to share the whole code around this i link the Fork with the functions and everything :

My Fork on the contact form

The thing is that the contact form works fine but i can not figure out how to use wp_mail() in this to send a mail to the administrator since i use javascript and not PHP.

Hope you guys can help me out with this one.

Read more here: Jquery contact form to send mail to admin


Solution:

If you know the solution of this issue, please leave us a reply in Comment section, to update the question.


Wordpress related questions and answers: