Skip to content

Instantly share code, notes, and snippets.

@gavinblair
Created June 13, 2011 21:22
Show Gist options
  • Save gavinblair/1023745 to your computer and use it in GitHub Desktop.
Save gavinblair/1023745 to your computer and use it in GitHub Desktop.
Drupal - resend activation email
<?php
$uid = 120;
$user = user_load(array('uid' => $uid));
$op = 'status_activated';
_user_mail_notify($op, $user);
@SeanJA
Copy link

SeanJA commented Jun 14, 2011

Won't send out the password though... I believe it will say "Username is: xxxxx, password is: password" because the string replace won't work properly?

@gavinblair
Copy link
Author

Worked for me :)

@SeanJA
Copy link

SeanJA commented Jun 14, 2011

Coolio, wonder what I did wrong then... hmmm

@signalpoint
Copy link

@gavinblair thank you for this. I've created a fork of this to allow Drupal administrators to bulk resend the welcome e-mail from the users administration form: https://gist.github.com/signalpoint/f17c645e44b9379d8320

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment