Title: Programatically Sending Account Activation Email
Last modified: July 2, 2025

---

# Programatically Sending Account Activation Email

 *  Resolved [liquidonthedrums](https://wordpress.org/support/users/liquidonthedrums/)
 * (@liquidonthedrums)
 * [11 months, 1 week ago](https://wordpress.org/support/topic/programatically-sending-account-activation-email/)
 * Hi,
 * I understand this is custom and may be outside of scope, but wondering if you
   can provide any context for why this is no longer working with the update to 
   V2.10.5.
 * On V2.10.4 I was running the following code to send a custom email template to
   a user and it was all working as expected. (I have rolled back to this older 
   version and can confirm that this code is still working).
 * `public function process_new_user_activation($user_id){`
   `UM()->common()->users()-
   >set_status($user_id, 'awaiting_email_confirmation');``UM()->common()->users()-
   >assign_secretkey($user_id);`
 * `um_fetch_user($user_id);
   $args = array();$args['{account_activation_link}'] 
   = um_user( 'account_activation_link' );
 * `UM()->mail()->send( um_user('user_email'), 'custom_activation_email', $args );
   
   um_reset_user();}
 * Since updating the V2.10.5, the ‘custom_activation_email’ email still sends, 
   however the {account_activation_link} merge tag is no longer replaced in the 
   email template.
 * I saw in the release notes that `um_user( 'account_activation_link' )` should
   no longer be used and `UM()->permalinks()->activate_url( $user_id )` , however
   this has not fixed the issue for me… and also `activate_url()` method does not
   accept any parameter.
 * Any assistance would be much appreciated. Thanks

Viewing 1 replies (of 1 total)

 *  Plugin Support [Yurii](https://wordpress.org/support/users/yuriinalivaiko/)
 * (@yuriinalivaiko)
 * [11 months ago](https://wordpress.org/support/topic/programatically-sending-account-activation-email/#post-18545447)
 * Hello [@liquidonthedrums](https://wordpress.org/support/users/liquidonthedrums/)
 * Sorry, but customizations are not included in our support.
 * Regards.

Viewing 1 replies (of 1 total)

The topic ‘Programatically Sending Account Activation Email’ is closed to new replies.

 * ![](https://ps.w.org/ultimate-member/assets/icon-256x256.png?rev=3160947)
 * [Ultimate Member – User Profile, Registration, Login, Member Directory, Content Restriction & Membership Plugin](https://wordpress.org/plugins/ultimate-member/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/ultimate-member/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/ultimate-member/)
 * [Active Topics](https://wordpress.org/support/plugin/ultimate-member/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/ultimate-member/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/ultimate-member/reviews/)

 * 1 reply
 * 2 participants
 * Last reply from: [Yurii](https://wordpress.org/support/users/yuriinalivaiko/)
 * Last activity: [11 months ago](https://wordpress.org/support/topic/programatically-sending-account-activation-email/#post-18545447)
 * Status: resolved