Take the 2-minute tour ×
WordPress Development Stack Exchange is a question and answer site for WordPress developers and administrators. It's 100% free, no registration required.

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
1  
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
add comment

1 Answer

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
add comment

Your Answer

 
discard

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.