Commit 8601701d authored by Leigh B Stoller's avatar Leigh B Stoller
Browse files

Add SendEmail() method to match same named method for real users.

parent fedd19d1
...@@ -761,6 +761,25 @@ sub Register($) ...@@ -761,6 +761,25 @@ sub Register($)
$self->cert()); $self->cert());
} }
#
# Send email.
#
sub SendEmail($$$;$)
{
my ($self, $subject, $body, $from) = @_;
require libtestbed;
$from = $TBOPS
if (!defined($from));
my $user_email = $self->email();
my $user_name = $self->name();
libtestbed::SENDMAIL("$user_name <$user_email>",
$subject, $body, $from, "Bcc: $TBAUDIT");
return 0;
}
############################################################################ ############################################################################
# #
# Wrapper for local users. # Wrapper for local users.
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment