Fix typos in perl code block for setting SMTPAPI header JSON

perl code block was missing a closing quote tick and had several extraneous semi-colons in the middle of hash declarations