Assign custom field to subject‏ - template question

Hello all,

I created a scrip that assigns a custom field value to the subject (and that works fine). The problem is that the email generated by the template doesn’t pick up the newly assigned subject.
Do I need to add something to the template?

Thanks in advance,
More immediate than e-mail? Get instant access with Windows Live Messenger.