Forward port of inactive user group email fix, and user status documentation.

This commit is contained in:
Colin Kuskie 2007-06-28 20:03:22 +00:00
parent 4c705b9859
commit 4f570b67c9
3 changed files with 8 additions and 0 deletions

View file

@ -419,6 +419,7 @@ sub send {
$self->{_message}->head->replace("cc", undef);
foreach my $userId (@{$group->getAllUsers(1)}) {
my $user = WebGUI::User->new($self->session, $userId);
next unless $user->status eq 'Active'; ##Don't send this to invalid user accounts
if ($user->profileField("email")) {
$self->{_message}->head->replace("To",$user->profileField("email"));
$self->queue;