Title: Send message button
Last modified: August 31, 2016

---

# Send message button

 *  [helven](https://wordpress.org/support/users/helven/)
 * (@helven)
 * [10 years, 2 months ago](https://wordpress.org/support/topic/send-message-button/)
 * Hello pathusutariya, I would very much like to use your plugin, as it is a super
   idea and could be really helpfull to my site, problem is that nothing happens
   when clicking the “send message” button. The message does´nt get send, and the
   window is not closing (if it should?)
    Can you help me please? Also I would like
   to know if I can see the php code somewhere, as I would like to implement in 
   my template, as front end users are submitting the posts? Thanks in advance, 
   and best regards. Helle, Denmark
 * [https://wordpress.org/plugins/message-to-author/](https://wordpress.org/plugins/message-to-author/)

Viewing 6 replies - 1 through 6 (of 6 total)

 *  Plugin Author [Pathu Sutariya](https://wordpress.org/support/users/pathusutariya/)
 * (@pathusutariya)
 * [9 years, 11 months ago](https://wordpress.org/support/topic/send-message-button/#post-7175134)
 * Hello I have use AJAX to submit data. please make sure that your other script
   with no error. or conflicts for plugin’s script.
 * If still problem is there. Please contact me with website URL. I will help you
   with this
 *  [rihannab](https://wordpress.org/support/users/rihannab/)
 * (@rihannab)
 * [9 years, 7 months ago](https://wordpress.org/support/topic/send-message-button/#post-8425208)
 * I have the same issue [@helven](https://wordpress.org/support/users/helven/),
   did you figure out how to solve yours?
 *  [Claude Vedovini](https://wordpress.org/support/users/cvedovini/)
 * (@cvedovini)
 * [9 years, 6 months ago](https://wordpress.org/support/topic/send-message-button/#post-8533298)
 * I have the same problem, here is the error that appears in the console when you
   press the send button:
 * POST [http://www.mywebiste.com/home/mywebsite/public_html//wp-admin/admin-post.php?action=m2a_message&data=m2a_message](http://www.mywebiste.com/home/mywebsite/public_html//wp-admin/admin-post.php?action=m2a_message&data=m2a_message)
   404 (Not Found)
 * pretty obvious there’s a bug in the plugin
 *  [Claude Vedovini](https://wordpress.org/support/users/cvedovini/)
 * (@cvedovini)
 * [9 years, 6 months ago](https://wordpress.org/support/topic/send-message-button/#post-8533321)
 * I thing the following line in class.php
 * `$action_path = ABSPATH.'/wp-admin/admin-post.php?action=m2a_message&data=m2a_message';`
 * should be replaced by
 * `$action_path = home_url('/wp-admin/admin-post.php?action=m2a_message&data=m2a_message');`
 * or something similar
 *  [Claude Vedovini](https://wordpress.org/support/users/cvedovini/)
 * (@cvedovini)
 * [9 years, 6 months ago](https://wordpress.org/support/topic/send-message-button/#post-8533333)
 * `$action_path = admin_url('admin-post.php?action=m2a_message&data=m2a_message');`
 * is probably more appropriate actually
 *  Plugin Author [Pathu Sutariya](https://wordpress.org/support/users/pathusutariya/)
 * (@pathusutariya)
 * [9 years, 1 month ago](https://wordpress.org/support/topic/send-message-button/#post-9068984)
 * in new version of this plugin
 * you can edit look for ‘Message Box’ at message-to-author/functions/functions.
   php at function Name: m2a_getMessageBoxHTML() ‘Popup Box’ at message-to-author/
   functions/functions.php at function Name: m2a_getPopupHTML()
 * If you wish to edit email body you can find it at: message-to-author/functions/
   functions.php at function Name: m2a_sendemail()
 * [@cvedovini](https://wordpress.org/support/users/cvedovini/) you can contribute
   code here: [https://github.com/pathusutariya/message-to-author](https://github.com/pathusutariya/message-to-author)
   I would like help for form customization in this plugin

Viewing 6 replies - 1 through 6 (of 6 total)

The topic ‘Send message button’ is closed to new replies.

 * ![](https://ps.w.org/message-to-author/assets/icon-256x256.png?rev=2378460)
 * [Message to Author](https://wordpress.org/plugins/message-to-author/)
 * [Support Threads](https://wordpress.org/support/plugin/message-to-author/)
 * [Active Topics](https://wordpress.org/support/plugin/message-to-author/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/message-to-author/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/message-to-author/reviews/)

 * 6 replies
 * 4 participants
 * Last reply from: [Pathu Sutariya](https://wordpress.org/support/users/pathusutariya/)
 * Last activity: [9 years, 1 month ago](https://wordpress.org/support/topic/send-message-button/#post-9068984)
 * Status: not resolved