Kernel::System::ProcessManagement::Modules::TicketSendEmail

NAME

Kernel::System::ProcessManagement::Modules::TicketSendEmail – A module to send an email from a ticket.

DESCRIPTION

All TicketSendEmail functions.

PUBLIC INTERFACE

new()

Don't use the constructor directly, use the ObjectManager instead:

    my $PriorityServiceCheckObject = $Kernel::OM->Get('Kernel::System::ProcessManagement::Modules::TicketSendEmail');

Run()

    Run Data

    my $TicketSendEmailResult = $TicketSendEmailActionObject->Run(
        UserID                   => 123,
        Ticket                   => \%Ticket,   # required
        ProcessEntityID          => 'P123',
        ActivityEntityID         => 'A123',
        SequenceFlowEntityID       => 'T123',
        SequenceFlowActionEntityID => 'TA123',
        Config                   => {
            'ConfigRecipients' => {
                'RecipientAgents' => [
                    '3',
                    '2',
                    '1',
                ],
                'RecipientEmail' => 'mail@example.com'
            },
            'ConfigArticleSettings' => {
                'IsVisibleForCustomer' => 1,
            },
            'ConfigMultiLanguageRichText' => {
                'en' => {
                    'ContentType' => 'text/html',
                    'Body' => 'someBody',
                    'Subject' => 'someSubject'
                }
            }
            UserID => 123,               # optional, to override the UserID from the logged user
        }
    );
    Ticket contains the result of TicketGet including DynamicFields
    Config is the Config Hash stored in a Process::Modules's Config key
    Returns:

    $TicketSendEmailResult = 1; # 0

    );
Scroll to Top