I have a page on my wordpress site that has some fields to be filled by visitor. On the click event of ‘submit’ button, all the details filled by visitor should be mailed to the wordpress admin.
I got to know how to Send automatic mail to Admin when user/member changes/adds profile
but i don’t have anything to do with the profiles right now. I want to send a mail to wp admin simply on button-click. Any help will be appreciated.
I could not really work out with the ajax with plugins things. Not so good with it still. 🙁
So i simply used the function
get_bloginfo('admin_email')
to obtain the admin’s email address. Usingmail()
function, the mails are sent to the obtained email address on click of the button.