Forward port of inactive user group email fix, and user status documentation.
This commit is contained in:
parent
4c705b9859
commit
4f570b67c9
3 changed files with 8 additions and 0 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue