Updated subject on outgoing email

Hi,

I have two ‘On create’ scrips:

a) the first one scans the body of the email and updates some fields
including the ticket subject; and

b) a second one which sends