Title: Programmatically resend activation email
Last modified: November 5, 2023

---

# Programmatically resend activation email

 *  Resolved [norbertk](https://wordpress.org/support/users/norbertk/)
 * (@norbertk)
 * [2 years, 6 months ago](https://wordpress.org/support/topic/programmatically-resend-activation-email/)
 * I’m not having success resending email_pending() to resend an activation e-mail
   to a WordPress user
 *     ```wp-block-code
       UM()->mail()->send( um_user( 'email@email.com' ), 'checkmail_email' );
       ```
   
 * Doesn’t seem to work

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

 *  Thread Starter [norbertk](https://wordpress.org/support/users/norbertk/)
 * (@norbertk)
 * [2 years, 6 months ago](https://wordpress.org/support/topic/programmatically-resend-activation-email/#post-17176615)
 * I got the below to work, but is there a way to check the success?
 *     ```wp-block-code
       // Set the Ultimate Member user and retrieve their e-mail address
       um_fetch_user( $wp_user_id );
   
       // Send user another activation e-mail
       $um_resend_checkmail_email = UM()->mail()->send( um_user('user_email'), 'checkmail_email' );
       ```
   
 *  [missveronica](https://wordpress.org/support/users/missveronicatv/)
 * (@missveronicatv)
 * [2 years, 6 months ago](https://wordpress.org/support/topic/programmatically-resend-activation-email/#post-17177333)
 * [@norbertk](https://wordpress.org/support/users/norbertk/)
 * You can use the `wp_mail_failed` action hook.
 * [https://developer.wordpress.org/reference/hooks/wp_mail_failed/](https://developer.wordpress.org/reference/hooks/wp_mail_failed/)
 *  Plugin Support [andrewshu](https://wordpress.org/support/users/andrewshu/)
 * (@andrewshu)
 * [2 years, 6 months ago](https://wordpress.org/support/topic/programmatically-resend-activation-email/#post-17191425)
 * Hi [@norbertk](https://wordpress.org/support/users/norbertk/)
 * This thread has been inactive for a while so we’re going to go ahead and mark
   it Resolved.
 * Please feel free to re-open this thread if any other questions come up and we’d
   be happy to help. 🙂
 * Regards

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

The topic ‘Programmatically resend 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/)

 * 3 replies
 * 3 participants
 * Last reply from: [andrewshu](https://wordpress.org/support/users/andrewshu/)
 * Last activity: [2 years, 6 months ago](https://wordpress.org/support/topic/programmatically-resend-activation-email/#post-17191425)
 * Status: resolved