Something like this in the template:
{set-block scope=root variable=subject}{"Subject text"|i18n( 'forgotpassword/email' )}{/set-block}

And after $tpl->fetch(), do a $tpl->getVariable( 'subject' ) or something similar.