Title: Send message manually by function
Last modified: July 24, 2020

---

# Send message manually by function

 *  Resolved [Metal_13](https://wordpress.org/support/users/metal_13/)
 * (@metal_13)
 * [5 years, 10 months ago](https://wordpress.org/support/topic/send-message-manually-by-function/)
 * I would like to make a form then send the output of that form to PM.
    can you
   help me make this work? tested it but nothing seems to be happening
 *     ```
       $message[mgs_parent] = 0;
       $message[mgs_author] = 65153;
       $message[message_to_id] = 1;
       $message[mgs_title] = 'TEST TITLE';
       $message[mgs_content] = 'TEST MSG TEST MSG TEST MSG';
       $message[mgs_type] = 'message';
       $message[mgs_status] = 'publish';
       $message[mgs_last_reply_by] = 1;
       //$message[mgs_last_reply_time] = '2020-07-24 19:32:25';
       $message[mgs_last_reply_excerpt] = 'TEST mgs_last_reply_excerpt';
   
       fep_send_message( $message, $override = array() );
       ```
   
    -  This topic was modified 5 years, 10 months ago by [Metal_13](https://wordpress.org/support/users/metal_13/).

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

 *  Plugin Author [Shamim Hasan](https://wordpress.org/support/users/shamim51/)
 * (@shamim51)
 * [5 years, 10 months ago](https://wordpress.org/support/topic/send-message-manually-by-function/#post-13167967)
 * You can get an idea from [https://www.shamimsplugins.com/docs/front-end-pm/customization/send-welcome-message-user-register/](https://www.shamimsplugins.com/docs/front-end-pm/customization/send-welcome-message-user-register/)
 *  Thread Starter [Metal_13](https://wordpress.org/support/users/metal_13/)
 * (@metal_13)
 * [5 years, 10 months ago](https://wordpress.org/support/topic/send-message-manually-by-function/#post-13172533)
 * Thanks a lot!

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

The topic ‘Send message manually by function’ 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
 * 2 participants
 * Last reply from: [Metal_13](https://wordpress.org/support/users/metal_13/)
 * Last activity: [5 years, 10 months ago](https://wordpress.org/support/topic/send-message-manually-by-function/#post-13172533)
 * Status: resolved