in an ssis package, I have a Send Mail Task and in the email body, I have a text and I want to add to that body the hostname. I've creates my variable hostname with the value EXEC('select HOST_NAME()') and I've added an expression for MessageSource:
"This is an automated message. You do not need to do anything with it." + @[User::hostName]
but in the email, the text is:
This is an automated message. You do not need to do anything with it.EXEC('select HOST_NAME()')
How to make it to receive the hostname in the email?
Best regards