Custom Action question

Thanks to help from Ruslan and others, I have a scrip set up to add a
Cc watcher based on the contents of a custom field and it works.
However, I can’t figure out how to get it to send out the actual
notification e-mail as part of the action commit code. Could anyone
help me out?

Here is my current scrip.

Condition: User Defined
Custom Condition:
return undef unless ($self->TransactionObj->Type eq “Create”);
return undef unless ($self->TicketObj->FirstCustomFieldValue(‘Domain’) =~
return 1;
Action: User Defined
Prep: 1;
Type => “Cc”,
PrincipalId => 34,
Email => "" );
push(@{$self->{‘To’}}, $self->TicketObj->Requestors->MemberEmailAddresses,
Template: TestOnCreate

Andy Harrison
(full headers for details)