WordPress Development Stack Exchange is a question and answer site for WordPress developers and administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

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.

share|improve this question
You can achieve this using WordPress AJAX codex.wordpress.org/AJAX_in_Plugins. Try it and let us know if you face any problem. – Vinod Dalvi Apr 5 '13 at 6:50
ok i will try it... thanks a lot – Chetana Kestikar Apr 5 '13 at 6:54
You are welcome, also post your working answer here and accept it so that it can help others. – Vinod Dalvi Apr 5 '13 at 7:29
up vote 1 down vote accepted

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. Using mail() function, the mails are sent to the obtained email address on click of the button.

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.