Title: Generating Message via a Button
Last modified: August 21, 2016

---

# Generating Message via a Button

 *  Resolved [marketermatt](https://wordpress.org/support/users/marketermatt/)
 * (@marketermatt)
 * [12 years, 3 months ago](https://wordpress.org/support/topic/generating-message-via-a-button/)
 * Hello Shamim,
 * I am trying to figure out how to allow users to submit a message through a page
   other than the page that has the inbox functionality. I would like to show users
   only the text area and then generate the To and Subject fields based on the page
   that the user is on. Can you point me in the right direction on how to do this?
 * I’ve begun by building a custom form where I’ve pulled in the user and set the
   subject line, I just need help with how to submit the form so that it shows up
   as a new message.
 * Thanks!
 * [https://wordpress.org/plugins/front-end-pm/](https://wordpress.org/plugins/front-end-pm/)

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

 *  Plugin Author [Shamim Hasan](https://wordpress.org/support/users/shamim51/)
 * (@shamim51)
 * [12 years, 3 months ago](https://wordpress.org/support/topic/generating-message-via-a-button/#post-4952987)
 * [code]
 *     ```
       $FEPform = new clFEPm();
       $action = $FEPform->dispCheckMsg();
       ```
   
 * now your form action should be like
 *     ```
       <form name='form' action=$action method='post'>
       ```
   
 * let me know this works for you
    remember to pass all the required value see dispCheckMsg()
   inside fep-class.php for required value
 *  [iamshehryar](https://wordpress.org/support/users/iamshehryar/)
 * (@iamshehryar)
 * [11 years, 11 months ago](https://wordpress.org/support/topic/generating-message-via-a-button/#post-4953275)
 * Hi Shamim,
 * I tried as you explained in your previous message but it’s not working can you
   please explain it. I am using this plugin and trying to register a shortcode 
   with my own form to send message. With that shortcode I can display form (for
   sending message) where I want.
 * Thanks,
    [https://wordpress.org/plugins/front-end-pm/](https://wordpress.org/plugins/front-end-pm/)

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

 The topic ‘Generating Message via a Button’ is closed to new replies.

 * ![](https://ps.w.org/front-end-pm/assets/icon-256x256.gif?rev=2309447)
 * [Front End PM](https://wordpress.org/plugins/front-end-pm/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/front-end-pm/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/front-end-pm/)
 * [Active Topics](https://wordpress.org/support/plugin/front-end-pm/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/front-end-pm/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/front-end-pm/reviews/)

 * 2 replies
 * 3 participants
 * Last reply from: [iamshehryar](https://wordpress.org/support/users/iamshehryar/)
 * Last activity: [11 years, 11 months ago](https://wordpress.org/support/topic/generating-message-via-a-button/#post-4953275)
 * Status: resolved