Title: Auto PM
Last modified: July 23, 2018

---

# Auto PM

 *  Resolved [dimendia](https://wordpress.org/support/users/dimendia/)
 * (@dimendia)
 * [7 years, 10 months ago](https://wordpress.org/support/topic/auto-pm/)
 * Is it possible to send an automated PM as soon as a new user has registered and
   has been activated

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

 *  Plugin Author [Shamim Hasan](https://wordpress.org/support/users/shamim51/)
 * (@shamim51)
 * [7 years, 10 months ago](https://wordpress.org/support/topic/auto-pm/#post-10519378)
 * Please see [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/)
 *  [Kalusha](https://wordpress.org/support/users/kalusha/)
 * (@kalusha)
 * [7 years, 9 months ago](https://wordpress.org/support/topic/auto-pm/#post-10639612)
 * I have put this code in my functions. Before an Update it works but now not.
 * ——————–
    add_action( ‘user_register’, ‘fep_cus_user_register_send_messaage’, 
   10, 1 );
 * function fep_cus_user_register_send_messaage( $user_id ){
    if ( $user_id < 1 )
   return; if ( ! function_exists( ‘fep_send_message’ ) ) return;
 *  // Prepare message data
    $message = array( ‘message_title’ => ‘Willkommen ‘ .
   fep_get_userdata( $user_id, ‘display_name’, ‘id’ ), //change with message title‘
   message_content’ => ‘Das hier ist dein persönliches Postfach auf **xxx **
 * **xxx**‘, //change with message content
    ‘message_to_id’ => $user_id );
 *  $override = array(
    ‘post_author’ => 1, //change with message sender id );
 *  // Send message
    fep_send_message( $message, $override ); ————————–
 * Any Idea?
 *  Plugin Author [Shamim Hasan](https://wordpress.org/support/users/shamim51/)
 * (@shamim51)
 * [7 years, 9 months ago](https://wordpress.org/support/topic/auto-pm/#post-10641806)
 * I have tested this code with latest version and working correctly. Please recheck.
   If require copy again from above link.

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

The topic ‘Auto PM’ 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/)

 * 3 replies
 * 3 participants
 * Last reply from: [Shamim Hasan](https://wordpress.org/support/users/shamim51/)
 * Last activity: [7 years, 9 months ago](https://wordpress.org/support/topic/auto-pm/#post-10641806)
 * Status: resolved