in reply to Output data into an email message.

You've supressed variable interpolation by using single quotes...put $_ in double quotes.